Learn R Programming

frailtyEM (version 0.7.2)

emfrail_dist: Distribution parameters for emfrail

Description

Distribution parameters for emfrail

Usage

emfrail_dist(dist = "gamma", theta = 2, pvfm = -1/2,
  left_truncation = FALSE)

Arguments

dist

One of 'gamma', 'stable' or 'pvf'.

theta

A starting value for the 'outer' maximization with respect to the frailty parameter \(\theta\). Must be >0.

pvfm

Only relevant if dist = 'pvf' is used. It determines which PVF distribution should be used. Must be larger than -1 and not equal to 0.

left_truncation

Logical. Whether the data set represents left truncated survival times.

Value

An object of the type emfrail_dist, which is mostly used to denote the supported frailty distributions in a consistent way.

Details

The theta argument must be positive. In the case of gamma or PVF, this is the inverse of the frailty variance, i.e. the larger the theta is, the closer the model is to a Cox model. For the positive stable distribution, the \(\gamma\) parameter of the Laplace trnasform is \(\theta / (1 + \theta)\), with the \(alpha\) parameter fixed to 1.

See Also

emfrail, emfrail_control

Examples

Run this code
# NOT RUN {
emfrail_dist()
# Compound Poisson distribution:
emfrail_dist(dist = 'pvf', theta = 1.5, pvfm = 0.5)
# Inverse Gaussian distribution:
emfrail_dist(dist = 'pvf')
# }

Run the code above in your browser using DataLab