Selecting Percentile curves using gamlss::lms in R

自作多情 提交于 2019-12-08 08:39:17

问题


I am using example code from gamlss package to draw percentile curves:

library(gamlss) 
data(abdom)
lms(y,x , data=abdom, n.cyc=30)

It is drawing its own set of percentile curves. How can I choose to draw only 10th, 50th and 90th percentile curves? Also I want to avoid plotting of points so that only curves are drawn. Thanks for your help.


回答1:


It's always a good idea to read the help pages:

> centiles(h,xvar=abdom$x, cent=c(10,50,90), points=FALSE)
% of cases below  10 centile is  8.688525 
% of cases below  50 centile is  50.16393 
% of cases below  90 centile is  90 



来源:https://stackoverflow.com/questions/27497068/selecting-percentile-curves-using-gamlsslms-in-r

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