how to generate random numbers with a specified lognormal distribution in R?

只谈情不闲聊 提交于 2019-11-30 21:35:53

The rlnorm function:

rlnorm(20, log(10), log(2.5))

More generally distributions in R are generally available in d,p,q,r forms with those letters coming first followed by the distribution stem: norm, lnorm, unif, gamma, ... etc. Their help pages will contain the specifics of the parameters, which can be essential if working with weibull or other distribution for which conventions are not completely standardized (as it were).

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