Mr_Pag
November 1st, 2009, 04:18 PM
Hi folks,
Can you help?
I have a model I want to fit using the glm like so:
glm(Y ~ X1 + X2 + X3)
I also want to investigate higher order interactions, i.e.
2nd order > Y ~ X1 + X2 + X3 + X1*X2 + X1*X3
3rd order > Y ~ X1 + X2 + X3 + X1*X2 + X1*X3 + X1*X2*X3
And assess the requirement of such terms using partial F-tests, check for multicollinearity etc.
This example is easy enough with only three explanatory variables, but with more vars calculation of the higher order terms becomes more complicated.
Does anyone know of a way to have R perform F-tests on the terms in ascending order? Thanks in advance!!
Best regards,
P
Can you help?
I have a model I want to fit using the glm like so:
glm(Y ~ X1 + X2 + X3)
I also want to investigate higher order interactions, i.e.
2nd order > Y ~ X1 + X2 + X3 + X1*X2 + X1*X3
3rd order > Y ~ X1 + X2 + X3 + X1*X2 + X1*X3 + X1*X2*X3
And assess the requirement of such terms using partial F-tests, check for multicollinearity etc.
This example is easy enough with only three explanatory variables, but with more vars calculation of the higher order terms becomes more complicated.
Does anyone know of a way to have R perform F-tests on the terms in ascending order? Thanks in advance!!
Best regards,
P