对于gamlss函数,我得到了以下错误ERROR : NA's in the working vector or weights for parameter mu:fit <- gamlss::gamlss(x ~ y, sigma.formula = ~ y, data = d, family = GA)
其中d是包含x和y的数据帧
x = 17.83961 29.73269 14.15842 15.00793 35.53764 13.53545 17.13169 35.67923 14.68229 10.59050 13.73367 26.58952 21.33674 28.60002 36.24556 22.00219 30.2990326.50457 28.17526 41.05943 19.22714 37.09507 24.32417 21.29427 23.72952 23.72952 18.37763
y = 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.037059 0.079820 0.079820 0.131133此错误的原因是什么?
发布于 2020-03-30 21:06:57
也许这与数据有关。如果你交换x和y,一个模型就会出来:
fit <- gamlss(y ~ x, sigma.formula = ~ x, data = d, family = GA)https://stackoverflow.com/questions/60877042
复制相似问题