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
Risk ratio meta analysis - naive questionIt appears that risk ratio (comparing p/(p+q) for each group) is preferred to odds ratio (using p/q …
Loop through variable names and output a list of factor variables in the datasetDear Statalists, Is there a way that I could loop through the variables in a dataset and get a list…
Any way to get the equivalent of "list" but with variables in rows and observations in colums?The 'list' command is pretty handy, but in most cases the output doesn't fit the screen if you want …
Stata Is Omitted dummy variable(its value 0 and 1)Hi Experts Hope you are doing well! Please solve my query. Dataset is Unbalanced Panel Data Data w…
New package ipwbreg on SSCThanks as always to Kit Baum, a new package ipwbreg is now available for download from SSC. In Stata…
Subscribe to:
Post Comments (Atom)
0 Response to AR(1) simulations
Post a Comment