Response variable out of range -> using gamlss in r LOGNO

旧城冷巷雨未停 提交于 2021-01-29 18:32:55

问题


I am new to the function GAMLSS in r, and when I run my code I always get this error: Response Variable out of range

After looking into the data frame, I realized the issue was one of response variables was 0.0000.

I was wondering if someone could explain to me why 0 is out of range and possible solutions to go around it (ex. such as replacement the values)?


回答1:


LOGNO family corresponds to the log-normal distribution, which is defined for positive values only.

The possible solutions might be (but highly depend on the context):

  • use another distribution, which better models the response variable and allows zero values
  • sometimes zero values are reported if they are below the limit of detection (LOD). In this case, one has a censored data set, and you may look for review of the methods, how to tackle it. A pragmatic approach is to substitute zeros with values like LOD/2, reviewed, for example, here. However, it may result in a very biased estimation.


来源:https://stackoverflow.com/questions/56972789/response-variable-out-of-range-using-gamlss-in-r-logno

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!