Re: [R] Selecting variables in a multivariate regression

2014-04-14 Thread Edson Tirelli
rts of posters to solve their own problems before > posting. Again, apologies if I err. > > Cheers, > Bert > > Bert Gunter > Genentech Nonclinical Biostatistics > (650) 467-7374 > > "Data is not information. Information is not knowledge. And knowledge > is certainl

[R] Selecting variables in a multivariate regression

2014-04-13 Thread Edson Tirelli
I am quite new to R and I am having trouble figuring out how to select variables in a multivariate linear regression in R. My google-fu also did not find anything. Pretend I have the following formulas: P = aX + bY Q = cZ + bY I have a data frame with column P, Q, X, Y, Z and I need to find a, b

[R] Selecting variables in a multivariate regression

2014-04-13 Thread Edson Tirelli
t in each regression. How can I select the variables to consider in a multivariate regression? I.e., how do I tell R to ignore cZ when calculating P, and ignore aX when calculating Q? Thank you, Edson -- Edson Tirelli Principal Software Engineer Red Hat Business Systems and Intelligenc