# Random parameters with endogeneous regressors by Stata SEM or GLLAMM?

I'm interested in estimating a linear model with random parameters (RP) and some endogenous regressors in stata. The main issue is to obtain estimates of parameters variances and not the parameters by themself (a two stage method provides unbiased parameter estimates). Is there any specific setup within SEM or GLLAMM modules to do an straight estimation of this model ?

-
 this is complex enough to be worth asking on statalist, as well. (I would still be the one most likely to respond, though :)) – StasK Aug 14 '12 at 20:41

A two stage method will at best provide consistent estimates. You can forget about anything unbiased in the GLLAMM or SEM world, trust me.

GLLAMM would be able to handle enodgeneity by explicitly modeling it. Is that something that you intend to pursue? Generally economists are unhappy about modeling endogeneity, and would rather prefer an estimation method that is robust to endogeneity, like instrumental variables.

Without knowing more about your model, it is impossible to tell what the xtmixed (which is probably more appropriate than sem here), let alone gllamm, set up could be.

-
 thanks for your answer... I agree with you... modeling the endogeneity will do the job. I was rather interested in an example or code that setups this kind of model... I don't want to spent lots of time in learning GLLAMMs syntax – JDav Sep 21 '12 at 22:50