我的脚本中出现错误消息,我不知道如何修复它

I got an error message in my script, I don't know how to fix it

提问人:Rodrigo Aza Alegria 提问时间:4/20/2023 最后编辑:MrFlickRodrigo Aza Alegria 更新时间:4/20/2023 访问量:24

问:

我正在尝试使用此脚本运行面板 VAR 模型,但我收到一条错误消息:

varone <-pvargmm(
 dependent_vars = c("dEMBI"),
 lags = 2,
 exog_vars = c('dPBI','dINF','dRATE','dBC','dDF'),
 transformation = "fd", #puede tener 2. fd es la 1era diferencia y fod es forward diferention
 data = df,
 panel_identifier = c("ID", "Year", "Month"), #q variables sirven para identificar el panel. Tienen que    ser números
 steps = c("twostep"),
 system_instruments = TRUE, #Default
 max_instr_dependent_vars = 99, #Default 
 min_instr_dependent_vars = 2L, #Default
 collapse = FALSE #Default
)

它应该估计模型,但我收到这个错误:

   Error in intI(i, n = di[margin], dn = dn[[margin]], give.dn = FALSE) : 
 index larger than maximal 90

有谁知道如何解决它?

R 处理 语法-错误 经济学

评论


答: 暂无答案