[R] Factor and Lm functions

2009-02-04 Thread RORAM
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 mo

[R] lm function

2009-02-03 Thread RORAM
Hi, I do not use R lenguage for programming, hence Im trying to understand how are specified the models below. I been reading some webpages with information about the notation in the "lm" function, but havent understand exactly what does the ":" do. Can some one give me an explenation of the mode