I'm trying to do a bootstrapping process with a Renshaw and Haberman model fit with STMoMo package. Here is the code :
RHboot<- bootstrap(RHfit, nBoot = 2000, type = "semiparametric")
plot(RHboot,nCol = 3,parametricbx=FALSE)
RHSimPU <- simulate(RHboot, h = forecastTime)
RHSim <- simulate(RHfit, nsim = 2000, h = forecastTime)
print(RHSimPU)
After run the the simulation row code I didn't get any error message but after apply "print" function I got the following output:
Simulations of Stochastic Mortality Model
Call: simulate.bootStMoMo(object = CBDMaleboot, h = forecastTime)
Simulation based on
Call: bootstrap.fitStMoMo(object = RHfitMale, nBoot = 2000, type = "semiparametric")
kt model: mrwdError in if (order[7] > 1 & sum(order[4:6]) > 0) result <- paste(result, :
argument is of length zero
which didn't let me then create the confidence intervals. The strangest thing is that the same code works perfectly for the model of Lee and Carter. See output attached.enter image description here
The code only works with LC model, the only one with one time-varying parameter. It seems to be related to ARIMA order according to the Forecast package code robjhyndman/forecast
Could you help me, please? Thanks in advance.