search for: minidf

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

Did you mean: minidp
2009 Oct 01
2
Re gression for levels of a factor/xyplot type="r"
Hi, I'm sure these are basic problems so I apologise in advance for my ignorance. I have a dataset with X, Y, and a Factor with 4 levels. I am trying to figure out how to use lm() to find the r2 value, slope and intercept of an X~Y regression, for each level of the Factor. Is there a way to do this automatically without having to specify different subsets of the factor? my code so far: