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
Converting string to date without any missing valuesHello, I have been trying to convert a string variable first_date into a date format with multiple …
Is collinearity a problem here?Dear Statalist users, I am trying to fit a linear regression model (Stata 15.0) with 5 different exp…
putdocx table - formatting numerical dataI am using putdocx table. Can I get columns formatted differently, some columns with numbers with 1 …
Graph bar colors by groupHi everybody, I have a simple question about bar graphs in Stata but I don't seem to find a solutio…
Calculating joint significanceDear all, I run a regression of financial reporting quality (FRQ) on investment where I have a vari…
Subscribe to:
Post Comments (Atom)
0 Response to AR(1) simulations
Post a Comment