search for: nt2010

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

Did you mean: ot2010
2010 Oct 14
1
Regression with groups and nested sub-groups
I have the following formula for a linear model: z <- lm(y~x + factor(a) + factor(b), data=NT2010) where a (groups) and b (Sub-groups) are categorical variables (factors), x is a continuous covariate, and y the response variable. Since b is nested within a, the formula can also be written as: z <- lm(y~x + factor(a) + factor(a)/factor(b), data=NT2010) and the same output is achieved whe...