数据[,1]中的R_误差中的CIR参数校准:尺寸数量不正确

数据[,1]中的R_误差中的CIR参数校准:尺寸数量不正确,r,rstudio,dimensions,R,Rstudio,Dimensions,我正在研究债券收益率的数据,我需要校准Cox-Ingersoll-Ross模型(CIR)的参数,但我找不到解决标题中提到的错误的方法。代码如下: library(SMFI5) R<-Germany_yields[,1] tau<-Germany_yields[,2] Ger_Y <-c(R,tau) est.cir(Ger_Y, method = 'Hessian', days = 360 , significanceLevel = 0.95) Error in da

我正在研究债券收益率的数据,我需要校准Cox-Ingersoll-Ross模型(CIR)的参数,但我找不到解决标题中提到的错误的方法。代码如下:

library(SMFI5)

R<-Germany_yields[,1]

tau<-Germany_yields[,2]

Ger_Y <-c(R,tau)

est.cir(Ger_Y, method = 'Hessian', days = 360 , significanceLevel = 0.95)

Error in data[, 1] : incorrect number of dimensions.
库(SMFI5)

你也许想要谢谢你,安德鲁,祝你今天愉快!