搜索带有R的估计量时出错

问题描述

我的代码

Amazon S3 allows arbitrary Unicode characters in your Metadata values.

To avoid issues around the presentation of these Metadata values,you should conform to using US-ASCII characters when using REST and UTF-8 when using SOAP or browser-based uploads via POST. 

通过在R中执行此操作,我得到了这样的错误
pweibull中的错误(duom1 $ Int_pab [1],形状= par [2],比例尺= par [1],lower.tail = TRUE): 数学函数的非数字参数。
有人能让我知道怎么了吗?另外,这是此任务中使用的数据集:

enter image description here

和dput(duom1)的输出

#Task 1.4 Find the ML estimators of nu and eta from the grouped data.

library("xlsx")
duom1<-dataset1
duom1
k=11
library(maxLik)
ln_l3 <- function(par) {
  eta <- par[1]
  nu <- par[2]
  reziai=k-1
  f=duom1$U_i[1]*log(pweibull(duom1$Int_pab[1],shape=par[2],scale = par[1],lower.tail = TRUE))+
    duom1$U_i[k]*log(1-pweibull(duom1$Int_pr[k],lower.tail = TRUE))+
    sum(duom1$U_i[2:reziai]*log(
      pweibull(duom1$Int_pab[2:reziai],lower.tail = TRUE)-
        pweibull(duom1$Int_pr[2:reziai],lower.tail = TRUE)) )
  return(f)
}
mle <- maxLik(logLik = ln_l3,start = c(650,2))
coef(mle)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)