I have the following DGP:
"Data generating process (DGP): Assume the true data generating process is the following: x is distributed iid N(0,1). eps_i (the i–th epsilon) is distributed N(0,1+exp(x_i)). That is, the variance of epsilon is (1+exp(x)) for that observation. Then assume that the LHS variable Y is generated according to: y = 2 + 1 * x + epsilon . Make the number of observations (N) in the dataset be 50."
But now, I need to estimate it with FGLS: "go back to the d.g.p. from problem (1a) and see how the properties of the FGLS (Feasible Generalized Least Squares) estimator goes. Figure out how to estimate FGLS in Stata, and describe your method (both in “econometrics” language and in “stata” language). In order to implement FGLS you’ll need a statistical model for the heteroscedasiticy. Use this model: var(eps_i) = gamma_0 + gamma_1 * exp(x_i). Then show how (1) the estimated slope parameter and"
Can anyone provide guidance on how to do this?
Thanks!
Related Posts with Monte Carlo FGLS
Hello ! Problems in setting up Maximum Likelihood Estimation of Fixed Effects Linear Regression Model via Optimize routine on MataHello, I have a bit of a silly problem in setting up Maximum Likelihood Estimation of Fixed Effects…
Dummy variable coefficients are getting automatically omitted by Stata : what to do to keep them ?I am currently trying to replicate Section 4.1. of a paper by "On the Heterogeneous Effects of Sanct…
flipping sign when adding different fixed effectsHi, My research is studying the relationship between certain policy A which is implemented in some …
How do I calculate specific time lapses?Hello, Statalisters. I am working with a prescription database, in which a patient may have one or m…
Non-staggered treatment and no control group: DID2SI am looking at the impact of covid on labor demand. All the regions in my sample receive the treatm…
Subscribe to:
Post Comments (Atom)
0 Response to Monte Carlo FGLS
Post a Comment