S.Y.Exponential: Marginal survival function for exponential random variable Y,...

Description Usage Arguments Value

View source: R/survival_funcs.R

Description

If !correlated: Y ~ Exponential(λ) If correlated: Y ~ Exponential(λ \cdot k) \quad K ~ Gamma(a, b)

Usage

1
S.Y.Exponential(t, a, b, parameters, correlated)

Arguments

t

A number or vector, the survival times

a

A number, the shape parameter of Gamma frailty distribution

b

A number, the rate parameter of Gamma frailty distribution

parameters

A list, with an element named lambda, the rate parameter of the exponential distribution

correlated

If TRUE, random variable is conditionally exponential on the frailty parameter, that has Gamma(shape=a, rate=b) distribution.

Value

Survival function evaluated at t


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