search for: ucbad

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

2011 Feb 16
1
Saturated model in binomial glm
...makes sense if I fit the model using as response a vector of proportions or a two-column matrix. But when the response is a factor and counts are specified via the "weights" argument, I am kind of lost as far as what is the implied saturated model. Here is a simple example, based on the UCBAdmissions data. > UCBAd <- as.data.frame(UCBAdmissions) > UCBAd <- glm(Admit ~ Gender + Dept, family = binomial, + weights = Freq, data = UCBAd) > UCBAd$deviance [1] 5187.488 > UCBAd$df.residual [1] 17 I can see that the data frame UCBAd has 24 rows and usi...