[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Question about GLM

From   Maarten buis <>
Subject   Re: st: Question about GLM
Date   Tue, 17 Nov 2009 22:58:56 +0000 (GMT)

--- On Tue, 17/11/09, Lee, Albert wrote:
> I recently estimated a fractional logit model using glm:
> Is there a way to calculate the standard error of the
> expected values without resorting to delta methods or other
> by-hand calculations?

Do you have something fundamentally against the delta method, 
or do you think that it is a lot of work to implement. If the 
latter is your concern, than you can consider the -predictnl- 
command like in the example below:

*------------------------ begin example ----------------------
use, clear
glm safety noleft popdens, link(logit) robust
predictnl pr = invlogit(xb()), ci(lb ub)

sort popdens
twoway rarea lb ub popdens if noleft==0  || ///
       rarea lb ub popdens if noleft==1  || ///
       line pr popdens if noleft==0      || ///
       line pr popdens if noleft==1
*-------------------- end example -----------------------
( For more on how to use examples I sent to statalist see: )

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index