r_weibull {rando} | R Documentation |
Generate Weibull Distributed Values
Description
Generates a set of Weibull distributed values.
Usage
r_weibull(
shape,
scale = 1,
...,
b_scale = NULL,
B_scale = NULL,
n = default_n(shape, scale, b_scale, B_scale),
.seed = NULL
)
Arguments
shape |
vector of shape parameters, strictly positive |
scale |
vector of scale parameters, strictly positive |
... |
Unused |
b_scale , B_scale |
alternative definition of scale parameter, cannot be provided with
|
n |
number of observations to generate. The |
.seed |
One of the following:
To extract the random seed from a previously generated set of
values, use |
Details
This function provides alternative definitions for the scale
parameter depending on the user's parametrisation of the Weibull
distribution, with k
= shape
.
Using \lambda
= scale
:
F(x) = 1 - exp(-(x/\lambda)^k)
Using b
= b_scale
:
F(x) = 1 - exp(-bx^k)
Using \beta
= B_scale
:
F(x) = 1 - exp(-(\beta x)^k)
Value
A numeric vector of length n
Examples
set_n(5)
r_weibull(10)
r_weibull(1:10, 2)
r_weibull(1:10, scale = 2)
r_weibull(1:10, b_scale = 2)
r_weibull(1:10, B_scale = 2)
r_weibull(10, 2, n = 10)