내가 사용 beta
regression
모델에 맞게하기 위해 노력하고있어 긍정적 확실하지 않다 이러한 데이터에 betareg
package
의 betareg
function
:얻기 오류 : 순서 5의 주요 미성년자 betareg
library(betareg)
fit <- betareg(value ~ category, data = df)
그리고이 error
받고 있어요 :
df <- data.frame(category=c("c1","c1","c1","c1","c1","c1","c2","c2","c2","c2","c2","c2","c3","c3","c3","c3","c3","c3","c4","c4","c4","c4","c4","c4","c5","c5","c5","c5","c5","c5"),
value=c(6.6e-18,0.0061,0.015,1.1e-17,4.7e-17,0.0032,0.29,0.77,0.64,0.59,0.39,0.72,0.097,0.074,0.073,0.08,0.06,0.11,0.034,0.01,0.031,0.041,4.7e-17,0.025,0.58,0.14,0.24,0.29,0.55,0.15),stringsAsFactors = F)
df$category <- factor(df$category,levels=c("c1","c2","c3","c4","c5"))
210
Error in chol.default(K) :
the leading minor of order 5 is not positive definite
In addition: Warning message:
In sqrt(wpp) : NaNs produced
Error in chol.default(K) :
the leading minor of order 5 is not positive definite
In addition: Warning messages:
1: In betareg.fit(X, Y, Z, weights, offset, link, link.phi, type, control) :
failed to invert the information matrix: iteration stopped prematurely
2: In sqrt(wpp) : NaNs produced
어떤 솔루션이 있습니까? 아니면 베타 회귀를 단순히 이러한 데이터에 적용 할 수 없습니까?