Lukas Wiechers
unread,Aug 8, 2019, 11:47:36 AM8/8/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ts...@googlegroups.com
Dear Matthieu Stigler,
I have estimated a SETAR model using your tsDyn package and then done a
forecast for ten time periods using the predict.nlar command. The code
is running, however, I am not sure about the received standard errors.
Given the estimated SETAR model with 229 observations named
"mod.setar21" I run the following code:
predict(mod.setar21, n.ahead=10, type="MC", nboot=100, ci=0.95)
According to the manual (p. 45), "$se" are the estimated standard
errors, but I get negative values as seen in the following:
$se
Time Series:
Start = 230
End = 239
Frequency = 1
5% 95%
230 -0.04150263 -0.04150263
231 -0.10061752 0.02058175
232 -0.11711327 0.05139648
233 -0.12885112 0.06643442
234 -0.13405834 0.08175834
235 -0.14099120 0.08076885
236 -0.15169921 0.10232657
237 -0.14558111 0.10146933
238 -0.16921491 0.10573619
239 -0.14088897 0.10201412
Since these values change if I change the value of "ci" in the predict
command and the two quantiles then adjust as well to the selected
confidence level, I want to ask you if these values are already the
lower and upper bound of the estimated confidence interval.
Thanks in advance!
Best regards
Lukas Wiechers