在R中使用gamlss :: lms选择百分曲线 [英] Selecting Percentile curves using gamlss::lms in R
本文介绍了在R中使用gamlss :: lms选择百分曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用gamlss包中的示例代码绘制百分位数曲线:
I am using example code from gamlss package to draw percentile curves:
library(gamlss)
data(abdom)
lms(y,x , data=abdom, n.cyc=30)
正在绘制自己的一组百分位曲线。如何选择仅绘制第10、50和90%百分位曲线?我也想避免绘制点,以便仅绘制曲线。
感谢您的帮助。
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.
推荐答案
阅读帮助页面总是一个好主意:
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
这篇关于在R中使用gamlss :: lms选择百分曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文