questions on examples from Kim and Nelson
Posted: Mon Mar 03, 2014 2:15 pm
Dear Tom,
I have several questions regarding to the examples from Kim and Nelson's book, "State-Space Models with Regime Switching". I am looking for your help.
Question 1
I would like to why you chose to use 4 lags. Is there any particular reason?
Question2
I am wondering whether there is a typo. I think the corrected codes should be
In addition, I would like to know where the numbers (0.6,0.5,0.4 and 0.2) are from.
I have several questions regarding to the examples from Kim and Nelson's book, "State-Space Models with Regime Switching". I am looking for your help.
Question 1
Code: Select all
KIMNP037_UNI.RPF
* 3.3 Application 1 from pp 38-43 of Kim and Nelson, "State-space Models
* with Regime Switching".
*
Use a linear regression to get some ballpark estimates for the
* standard deviations.
*
linreg lgdp
# lgdp{1 to 4}
Question2
Code: Select all
* KIMNP048.RPF
* 3.5 Application 3 from pp 48-55 of Kim and Nelson, "State-space Models
* with Regime Switching".
*
* Dynamic factor model
stats(noprint) ipgrow
compute beta(1)=%mean,sigma(1)=%variance*.5
compute gamma(1)=%fill(1,1,0.6)
stats(noprint) incgrow
compute beta(2)=%mean,sigma(2)=%variance*.5
compute gamma(2)=%fill(1,1,0.5)
stats(noprint) salesgrow
compute beta(3)=%mean,sigma(3)=%variance*.5
compute gamma(3)=%fill(1,1,0.4)
stats(noprint) empgrow
compute beta(4)=%mean,sigma(4)=%variance*.5
compute gamma(4)=%fill(4,1,0.2)Code: Select all
stats(noprint) ipgrow
compute beta(1)=%mean,sigma(1)=%variance*.5
compute gamma(1)=%fill(1,1,0.6)
stats(noprint) incgrow
compute beta(2)=%mean,sigma(2)=%variance*.5
compute gamma(2)=%fill(2,1,0.5)
stats(noprint) salesgrow
compute beta(3)=%mean,sigma(3)=%variance*.5
compute gamma(3)=%fill(3,1,0.4)
stats(noprint) empgrow
compute beta(4)=%mean,sigma(4)=%variance*.5
compute gamma(4)=%fill(4,1,0.2)