Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: gllamm: gllapred versus gllasim


From   <[email protected]>
To   <[email protected]>
Subject   st: gllamm: gllapred versus gllasim
Date   Wed, 22 Jun 2005 19:33:11 +0200

Greetings,

At the risk of posing a stupid question, can somebody comment on when it
makes sense.to use gllapred or gllasim following the estimation of a
model using gllamm?

Specifically, I'd like to do the following. 1. Estimate a panel probit
model using:

gllamm y age other1 other2, i(persid) family(binom) link(probit) nip(20)

2. Holding other1 and other2 fixed at their mean values, generate
predicted values of y over different integer values of age, say, ranging
between 18 and 65.

To implement step 2, I've created an artificial data set in which other1
and other2 are fixed at their mean values and age varies over the range
of interest. So I first estimate the model on the real data. Then I open
the artificial data and type:

gllapred pred1, linpred fsample

The fsample option is apparently needed because otherwise gllapred isn't
pleased that I've opened another data set (I get an insufficient
observations error). 

The above seems like the right approach given my objective. But I get a
very different answer when I type in step 2:

gllasim pred1, linpred fsample

evidently because the latter (gllasim) doesn't include empirical Bayes.
Is there a practical rule for deciding between the two?

Many thanks,

Colin

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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