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
How to identify the oldest and youngest children in each HHHi all, I would like to create variables that could identify who is the oldest and youngest childre…
How can I find out how Stata is calculating covariance matrices exactly(!)I'm trying to translate Stata results into R and with the existing methods, I can only recreate stan…
How to estimate margins after bioprobit?Hello everyone, I am conducting a study to analyze accident data. I have two outcome variables, nam…
Violations of the proportional hazards assumptionHello everyone Perform a COX proportional hazard regression model. However, the final multivariate …
Exporting Regression Results with 6 decimal pointsHello, I can export regression results in stata, but I was wondering how to export regression result…
Subscribe to:
Post Comments (Atom)
0 Response to AR(1) simulations
Post a Comment