Hi,
I'm new to stata programming and need some help on a simulation exercise.
I need to simulate an AR(1) process defined by:
yt = Byt-1 + et
et ~ N(0;1)
y0 = 0
For this exercise B can assume three values: i) '1.0'; ii) '0.9'; and iii) '0.5'. I need to simulate 1,000 series of 100 obs for each one of these three Bs.
Then I'm asked to estimate everything through OLS, so I can compare the results and comment the properties of the estimators.
Can anyone help me to implement a routine for this? I'm currently using STATA 14.
Thanks in advance.
Related Posts with AR(1) simulations
Goodness of Fit in IVregress with clustered SEDear all, I'm running an IV regression with clustered SE. Since my outcome variable is a cell mean,…
How can I choose the time-varying technical efficiency models and inefficiency distribution?Dear STATA users, I am estimating the determinant factors of technical efficiency of teff farms (fo…
Confidence Intervals for Pairwise Comparisons of Average Marginal EffectsHi, when using the following commands: asdoc regress lnincome i.race age age_squared i.region i.hig…
Causality or correlation in panel data regression using random effect modelHi all, I have a question regarding a panel data regression using a Random Effect Model (REM). I am…
summing observations by idHi all, I am sorry if I this may be a trivial question and if it has already been discussed. I sear…
Subscribe to:
Post Comments (Atom)
0 Response to AR(1) simulations
Post a Comment