search for: sectionf

Displaying 1 result from an estimated 1 matches for "sectionf".

Did you mean: section
2009 Nov 13
2
linear model and by()
Hello R list, This is a question for anyone who has used the by() command. I would like to perform a regression on a data frame by several factors. Using by() I think that I have able to perform this using the following: > lm.r <- by(master, list(Sectionf=Sectionf, startd=startd), function(x) lm (tot.c ~ starttime, data = x)) So that is, I would like to perform separate regressions for each level of Sectionf for each level of startd. Now I can get the coefficients and intercepts from all the fitted models. However, I am now unsure how to glean more...