[R] How to catch data from the different dataframes and lm problem?

Hsin-Ya Lee leeznar at yahoo.com.tw
Mon Dec 31 07:49:09 CET 2007


Dear all:

I used lm to perform a regression in R and and intercept is -0.01894 and X
is 0.185758.  This is my target.  
Y<-(c(0,4.95,9.95,0,2.5,20,0,1.1,2.85,0,2.5,5))
X<-(c(0.1,10,20,20,25,60,0.6,2.5,6,35,40,45))
lm(Y~X)
anova(wnlm<-lm( Y~X))
summary(wnlm<-lm( Y~X))

I catch test (Y) values and concentration (X) values by myself.  Then, here
is my question.  How to “auto-catch” test (Y) values and concentration (X)
values from the split dataframes?  Because I think that if I can catch
“test” (Y) values and “concentration” (X) values into a dataframe, then I
can use “lm” to fit linear models.  So, how to catch all “test” values from
different dataframes?  Or what should I do? 

Best regards,

Hsin-Ya Lee


-- 
View this message in context: http://www.nabble.com/How-to-catch-data-from-the-different-dataframes-and-lm-problem--tp14521967p14554872.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list