Re: [R] Help with lm and multiple linear regression? (Plain Text version)

2007-12-27 Thread Tim Calkins
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

[R] Help with lm and multiple linear regression? (Plain Text version)

2007-12-27 Thread Aaron Barzilai
(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

Re: [R] Help with lm and multiple linear regression? (Plain Text version)

2007-12-27 Thread Aaron Barzilai
. 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

Re: [R] Help with lm and multiple linear regression? (Plain Text version)

2007-12-27 Thread Charilaos Skiadas
: 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