[R] Simulating from a Weibull distribution
jwiley.psych at gmail.com
Wed Sep 3 04:04:17 CEST 2014
Try the gamlss.dist package, specifically the rWEI2() function.
On Wed, Sep 3, 2014 at 11:52 AM, Lucy Leigh <lucy.leigh at newcastle.edu.au>
> I wish to simulate some data from a Weibull distribution. The rweibull
> function in R uses the parameterisation
> 'with shape parameter a and scale parameter b has density given by f(x) =
> (a/b) (x/b)^(a-1) exp(- (x/b)^a)'.
> However, it would be much more useful for me to simulate data using a
> different parameterisation of the
> Weibull, with shape a1 and scale b1, namely f(x) =
> However I'm not sure how to do this, as I have only ever used the random
> generators that come pre-programmed in R.
> Is there a package or example someone can point me to that demonstrates
> how to simulate data from any given distribution?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Joshua F. Wiley
Ph.D. Student, UCLA Department of Psychology
Senior Analyst, Elkhart Group Ltd.
[[alternative HTML version deleted]]
More information about the R-help