Description Usage Arguments Details Value
View source: R/survival_funcs.R
If correlated
, the function computes the density of Z by
first marginalizing over the support of K, then over Y from 0 to z. For computational efficiency,
it integrates K from epsilon
to int.upper
and Y from epsilon
to z, where epsilon
can be 0
and int.upper
can be Inf
. Small deviations from 0 and Inf
will
approximate the true integral.
1 2 | f.Z.Weibull(z, parameters_x, parameters_y, gamma_shape, gamma_rate,
epsilon, int.upper, control_list, correlated)
|
z |
A number or vector at which to evaluate the density function |
parameters_x |
A list, with an element named |
parameters_y |
A list, with an element |
gamma_shape |
A number, the shape parameter of Gamma frailty distribution |
gamma_rate |
A number, the rate parameter of Gamma frailty distribution |
epsilon |
A float, the lower bound for support of K and of Y |
int.upper |
A float, the upper bound for support of K |
control_list |
A list, with an element named |
correlated |
If |
X \sim Weibull(shape=p_{x}, rate=λ_{x} \cdot k^{p_{x}})
Y \sim Weibull(shape=p_{y}, rate=λ_{y} \cdot k^{p_{y}})
Z := X + Y
K \sim Gamma(shape=gamma_shape, rate=gamma_rate)
density function evaluated at Z=z
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.