救救孩子
```{r}
theta.est <- .04
kappa.est <- .5
sigma.est <- .02
parameters.est <- c(theta.est, kappa.est, sigma.est)
library(stats4)
bound.lower <-parameters.est * .1 # set the lower bound for the method "L-BFGS-B"
bound.upper <-parameters.est * 2 # set the upper bound for the method "L-BFGS-B"
est.mle<-mle(likelihood.CIR, start= list(theta=theta.est, kappa=kappa.est, sigma=sigma.est), method="L-BFGS-B", lower=bound.lower, upper= bound.upper, fixed=list(rt=rt))
summary(est.mle)
```
请问标红行为什么会Error in if (!all(lower[isfixed] <= fixed[isfixed] & fixed[isfixed] <= :
missing value where TRUE/FALSE needed报这个错
待估函数likelihood.CIR是能运行成功的,参数为theta, kappa, sigma, rt,rt为61*1000数组没有0值
不成熟的猜想,是lower=bound.lower, upper= bound.upper, fixed=list(rt=rt)这里的问题吗,具体什么问题咱也不敢说,请大佬救救。


雷达卡





京公网安备 11010802022788号







