Dear Statalisters,
I am analysing longitudinal data in long format from a complex survey design.
Those in charge the data distribution suggest to handle them in this way:
svyset psu [pweight=weightres4], strata ( strata ) singleunit(centered) (1)
Weights are time-varying so, they vary for individuals and waves.
So far, I ran a model of this type
svy: logit y x
but I wish I could use a random effect model to control for individual unobserved heterogeneity.
xtlogit is not supported by svy.
So I was wondering whether melogit could be used and in that case
how to set model such that it considers the complex design in (1).
In the end I think that the hierarchy of the levels should be:
_n (t) <-- ID <--strata<-- psu
.
and the model this one:
melogit y x [pweight=weightres4] ||pidnew: || strata: || psu:, or level(95)
But I would like to have an opinion on whether this specification is correct,
as computing this model and the margins from this model is quite long
and I am not sure whether this specification is correct.
Thank you and best,
Lydia
Related Posts with SVY and MELOGIT
Hausman Endogenity TestHi, I have a reverse causation system. Y1 = f(Y2, X) and Y2 =g(Y1, Z). Using IV both reverse casuat…
Commands to estimate models with variables at different levels?Hi folks, imagine I have a panel data set in which the dependent variable is continuous and is measu…
Generalized Difference-in-Differences with a moderator variable - repeated time values within panelHello Statalists! I'm currently calculating a generalized DiD model and I'm unsure if my approach is…
Multinomnial logit latent class model in panel dataHi all: I want to apply multinominal logit latent class model in my panel data. I know gsem, lc() o…
Parameter constraints in MLE estimation for SFAHello, I'm using the following commands after which I would like to set up constraints for the param…
Subscribe to:
Post Comments (Atom)
0 Response to SVY and MELOGIT
Post a Comment