Re: [R] Compute Regressions with R-Function

2015-11-12 Thread Bert Gunter
No function is necessary for multiple lhs's. lm() allows a matrix as it's lhs and will fit a separate regression for each column of the matrix. Please read ?lm carefully for details. For that matter, please read the linked Help pages and/or spend some time with a tutorial (there are many on the

Re: [R] Compute Regressions with R-Function

2015-11-12 Thread Nordlund, Dan (DSHS/RDA)
ect.org Subject: [R] Compute Regressions with R-Function Hello I was trying to set up a function() that allows easely to calculate regressions for severel dependent variables with the same independent variables. My function looked like this but was turned down by an error (Im quiet new to R Stud

Re: [R] Compute Regressions with R-Function

2015-11-12 Thread Michael Dewey
In-line On 12/11/2015 16:27, Matthias Worni wrote: Hello I was trying to set up a function() that allows easely to calculate regressions for severel dependent variables with the same independent variables. My function looked like this but was turned down by an error (Im quiet new to R

Re: [R] Compute Regressions with R-Function

2015-11-12 Thread Jeff Newmiller
Your email is severely damaged because you sent it using HTML format. Please adjust the settings in your email software to use only plain text when sending to this list so we can see what you see. While you are at it you should read about making your examples reproducible [1]... it may seem

[R] Compute Regressions with R-Function

2015-11-12 Thread Matthias Worni
Hello I was trying to set up a function() that allows easely to calculate regressions for severel dependent variables with the same independent variables. My function looked like this but was turned down by an error (Im quiet new to R Studio). So here is my solution: b CO2 logTrop_Aerosol lm(b