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
insheeting excel files using loop and extracting filename as variable valueHello, I am trying to use insheet multiple .xlxs files and then extract filename. This is my code: …
Subgroups with coefplot allowing each graph to have its own scale and adjust location of legendDear all I am using the following code to create a graph with 5 plots: Code: coefplot (hba1c1, …
Spatial Panel Data TestsHello, I am relatively new to Stata and have been estimating different spatial panels, such as the …
Conditional drop if command within a certain firm year levelHi, I am working on my master thesis and I am currently busy with the data cleaning process. One of…
Interacting firm fixed effects for numerous firms with a continuous variable - Execution and interpretationDear all, I am attempting to replicate a series of OLS regressions with respect to the effect of CE…
Subscribe to:
Post Comments (Atom)
0 Response to AR(1) simulations
Post a Comment