weib_icdf {cpsurvsim} | R Documentation |
Inverse CDF value generation for the Weibull distribution
Description
weib_icdf
returns a value from the Weibull distribution by
using the inverse CDF.
Usage
weib_icdf(n, gamma, theta)
Arguments
n |
Number of output Weibull values |
gamma |
Shape parameter |
theta |
Scale parameter |
Details
This function uses the Weibull density of the form
to get the inverse CDF
where
is a uniform random variable. It can be implemented directly and is
also called by the function
weib_memsim
.
Value
Output is a value or vector of values from the Weibull distribution.
Examples
simdta <- weib_icdf(n = 10, theta = 0.05, gamma = 2)
[Package cpsurvsim version 1.2.2 Index]