[R] Factor and Lm functions

RORAM rogelio.a.mancisidor at student.bi.no
Wed Feb 4 12:33:57 CET 2009


Hei,
I have a formula for a model as follows
lm(TS~log(BodyWt)+log(BodyWt):factor(D). I do not use R for programming
hence I dont understand what is the second covariate in the model
"log(BodyWt):factor(D)".
Where BodyWt = body weight and D = danger index (either 1 or 2). I want to
run the same model in other program. Can anyone explain me what is doing the
: operator and the factor() function.

Thanks
-- 
View this message in context: http://www.nabble.com/Factor-and-Lm-functions-tp21828771p21828771.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list