consider merging everything into a singe dataframe. i haven't tried
it, but something like the following could work:
reg.data - cbind(margin, personcoeff)
names(reg.data) - c('margin', 'p1', 'p2')
lm(margin~p1+p2, data = reg.data)
the idea here is that by specifying the data frame with the
(Apologies the previous version was sent as rich text)
Hello,
I'm new to R, but I've read the intro to R and successfully connected it to an
instance of mysql. I'm trying to perform multiple linear regression, but I'm
having trouble using the lm function. To start, I have read in a simply y
.
Thanks,
Aaron
- Original Message
From: Tim Calkins [EMAIL PROTECTED]
To: Aaron Barzilai [EMAIL PROTECTED]
Cc: r-help@r-project.org
Sent: Thursday, December 27, 2007 6:55:57 PM
Subject: Re: [R] Help with lm and multiple linear regression? (Plain Text
version)
consider merging everything
: Thursday, December 27, 2007 6:55:57 PM
Subject: Re: [R] Help with lm and multiple linear regression?
(Plain Text version)
consider merging everything into a singe dataframe. i haven't tried
it, but something like the following could work:
reg.data - cbind(margin, personcoeff)
names
4 matches
Mail list logo