r - GAMLSS centile.fan 给出错误“if (any(mu < 0)) stop(paste("mu must be positive", "\n", "")) 中的错误:需要 TRUE/FALSE 的缺失值”
问题描述
我正在使用GAMLSS中的lms()命令创建增长百分位曲线。我可以拟合一个模型,也可以绘制centiles()曲线。但是,我无法使用centiles.fan()绘制拟合模型的扇形图。
这是我的代码及其产生的错误。Gm_girl_1 是拟合的 gamlss 模型。
centiles.fan(Gm_girl_1, xvar=ht_B_2$age, cent = c( 10, 25, 50, 75, 90), xlim=c(4,19), colors=c("gray"))
if (any(mu < 0)) stop(paste("mu must be positive", "\n", "")) 出错:需要 TRUE/FALSE 的地方缺少值
令人惊讶的是 centile() 命令可以正常工作,是 centiles.fan() 的问题吗?任何帮助将不胜感激。谢谢你。
解决方案
推荐阅读
- python - 在 Keras tensorflow2 中连接层
- php - 数组切片取值而不是值的一部分
- mysql - 内部连接到临时表并插入到 MySql 中的表
- android - ADB 命令在不知道活动的情况下将 android 应用程序恢复到前台
- types - Julia 中的复数计算,奇怪的结果?
- firebase - 我应该在树莓派上使用 firebase 还是 firebase-admin?
- jdbc - 在 redshift jdbc 驱动程序中将结果缓存设置为关闭
- sql - 使用 SQL 过滤特定值,然后删除重复行
- javascript - 如何启动计时器 onClick 而不是直接 onLoad
- macos - 在 mac os 上将 Xampp 从 10.1.36-MariaDB 更新到 10.2