f.YZK.Weibull: Joint density function for two conditionally Weibull random...

Description Usage Arguments Value

View source: R/survival_funcs.R

Description

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 \to X = Z - Y
K \sim Gamma(shape=gamma_shape, rate=gamma_rate)

Usage

1
f.YZK.Weibull(k, y, z, parameters_x, parameters_y, gamma_shape, gamma_rate)

Arguments

k

A number or vector, the frailty term, K = k

y

A number, value of Y = y

z

A number, value of Z = z

parameters_x

A list, with an element named lambda (λ_x), and an element named p (p_x).

parameters_y

A list, with an element lambda (λ_y), and an element named p (p_y).

gamma_shape

A number, the shape parameter of Gamma frailty distribution

gamma_rate

A number, the rate parameter of Gamma frailty distribution

Value

joint density function evaluated at K=k, Y=y, and X=z-y.


mbannick/survDeconvolution documentation built on Sept. 30, 2020, 9:22 a.m.