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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.