[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Applying DESMAT to Log-linear saturated models
--- email@example.com wrote:
> Dear Listers,
> I have a somewhat technical question.
> At the UCLA Stata FAQ site, it can be read that Hendrickx's
> DESMAT be used to generate a saturated model for
> Agresti's afterlife data.
> However, isn't this inappropriate when fitting a saturated model
> for a contingency table? Using DESMAT POISSON would indicate
> that count is the dependent variable with error terms poisson
The faq is referring to a saturated loglinear model. A loglinear
model is applied to contingency table data. It assumes the
frequencies have either a poisson or a multinomial distribution.
> In addition to that, the output shows "model degrees of
> the saturated model has 0 df by definition as it fits the data
A saturated model has 0 residual degrees of freedom. If you run:
desmat: glm count race*gender*belief, family(poisson) link(log)
This produces the same estimates but addition model statistics. The
value for deviance is 0, as are the residual degrees of freedom.
There are 11 model degrees of freedom are equal to the number of
predictors (excluding the intercept). There are 11 dummy variables,
so 11 model df.
> Maybe I am so wrong or stupid or both that I don't get it, but I'd
> appreciate your comments.
You're just wrong.
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
* For searches and help try: