Displaying 2 results from an estimated 2 matches for "majn".
Did you mean:
main
2006 Jul 07
1
FW: Levels and GLM
...st the response at
each level with that at the first.)"
So level "M" is the "reference cell". Assuming that
data.logistic$Overall is continuous, the intercept is the estimate of
the mean response when maj = "M" and data.logistic$Overall = 0. The
estimate for majN is the difference between the reference cell
(estimated
by the intercept) and the mean response when maj = "N" and
data.logistic$Overall = 0.
You should check out ?model.matrix and ?contrasts.
Max
> I am using the as.factor command to use with glm. When I use the
command
>
&...
2006 Jul 07
1
Levels and GLM
....Yard.Average ~ data.logistic$Overall + maj, family=binomial)
> logistic.glm
I receive the following output:
Call: glm(formula = data.logistic$X100.Yard.Average ~
data.logistic$Overall + maj, family = binomial)
Coefficients:
(Intercept) data.logistic$Overall majN
2.38819 -0.02718 -0.18385
Degrees of Freedom: 377 Total (i.e. Null); 375 Residual
Null Deviance: 514.5
Residual Deviance: 410.7 AIC: 416.7
My question: Why is there no output for majM? Any help would be
greatly appreciated