Can anyone tell what's wrong with my simulation:
////////////////////////////////////////the Code:
clear all
program define MonteCarlo, rclass
import excel "C:\Users\altal\OneDrive\Desktop\Udemy\ma1.xls x", sheet("ma1") firstrow
quietly gen time =_n
quietly tsset time
scalar a0 = 0.01
scalar alpha = 0.05
scalar beta = 0.6
gen v=rnormal(0,1)
gen h=rnormal(0,1)
generate e=sqrt(h)*v
replace h=a0+(alpha*(v[_n-1]^2)+ beta)*h[_n-1]
arch y, arch(1/1) garch(1/1)
end
simulate _cons [ARCH]L1.arch [ARCH]L1.garch, reps(500): MonteCarlo
summarize _cons [ARCH]L1.arch [ARCH]L1.garch
////////////////////////////////////
thanks in advance
Related Posts with Monte Carlo Simulation to generate garch process
Reshaping data from wide to longHello! I am working with the following data obtained from World Bank's World Development Indicators.…
Randomized itemsDear Stata experts, I have recently finalized a data collection from an on-line platform with embed…
Interaction term in fixed effectsHello, I would like to clarify the following uncertainty: I am analysing the impact of technology o…
Heckman Panel DataHello everyone! I have small doubts regarding estimation of Heckman model in the panel data framewor…
Removing insignificant variablesHello, As an example here, I am trying to estimate the following regression and compare when my depe…
Subscribe to:
Post Comments (Atom)
0 Response to Monte Carlo Simulation to generate garch process
Post a Comment