【问题标题】:ideal() in R package pscl produces errorR包 pscl 中的 Ideal() 产生错误
【发布时间】:2017-10-09 12:06:08
【问题描述】:

我想使用Rpscl 包中的ideal() 函数。当我运行帮助文件中提供的示例时,即,

data(s109)
n <- dim(s109$legis.data)[1]
x0 <- rep(0,n)
x0[s109$legis.data$party=="D"] <- -1
x0[s109$legis.data$party=="R"] <- 1

id1 <- ideal(s109,
         d=1,
         startvals=list(x=x0),
         normalize=TRUE,
         store.item=TRUE,
         maxiter=260E3,
         burnin=10E3,
         thin=100)

我收到以下错误消息:

Error in .C("IDEAL", PACKAGE = .package.Name, as.integer(n), as.integer(m),  : 
  wrong type for argument 18 in call to IDEAL

我该如何解决这个问题?提前致谢。

P.S.:我在 OS X 10.13 上,使用 R 3.4.2 和 pscl 1.5.1。

【问题讨论】:

    标签: r pscl


    【解决方案1】:

    2017 年 10 月 10 日发布的新版 pscl 包(版本 1.5.2)解决了该问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-04
      相关资源
      最近更新 更多