请问在用BAPC包做预测的时候报错,是哪里的问题呢?是BAPC包的问题还是INLA包的问题?应该如何解决。
R版本是4.4.2,BAPC包的版本是0.0.36,INLA包的版本是24.05.10
require(INLA)
> #sum(wstand)
> # 模型预测
> diabetes3_input <- APCList(IBD_pro_n, GBD_China_Male_n, gf=5)##gf为年份间隔
> diabetes3_bapc_result <- BAPC(diabetes3_input, predict=list(npredict=15, retro=T), secondDiff=FALSE, stdweight=wstand, verbose=F)
*** inla.core.safe: The inla program failed, but will rerun in case better initial values may help. try=1/1
错误于inla.core.safe(formula = formula, family = family, contrasts = contrasts, :
The inla program call crashed.
The inla program failed and the maximum number of tries has been reached.