Hey, I'm an R noobie and I have been trying calculate SSEr and SSEc in order to determine if there is sufficient evidence to include second-order terms in my model, but I have no idea what command to use. Any help with this would be much appreciated. -- View this message in context: http://r.789695.n4.nabble.com/Nested-Models-tp4637855.html Sent from the R help mailing list archive at Nabble.com.
Homework? Ask your prof. cheers, Rolf Turner On 26/07/12 11:48, stuco wrote:> Hey, I'm an R noobie and I have been trying calculate SSEr and SSEc in order > to determine if there is sufficient evidence to include second-order terms > in my model, but I have no idea what command to use. Any help with this > would be much appreciated.
You can make different lm objects by adding all predictors and compare them with anova(lm1,lm2,lm3...). See if p value is not significant, the more complex model is not appropriate. Dr Suman Kumar -- View this message in context: http://r.789695.n4.nabble.com/SSEc-and-SSEr-tp4637855p4637963.html Sent from the R help mailing list archive at Nabble.com.