I would like to get 20 randomly generated numbers from a lognormal distribution with the geometric mean of 10 and geometric standard deviation of 2.5.
Which R function should I use to accomplish this task?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
rlnormfunction:More generally distributions in R are generally available in
d(ensity),p(robability),q(uantile),r(andom) forms with those letters coming first followed by the particular distribution stem:norm,lnorm,unif,gamma, … etc. Their help pages will contain the specifics of the parameters, which can be essential if working withweibullor other distribution for which conventions are not completely standardized (as it were).