Description Usage Arguments Details Value See Also Examples

View source: R/dynfrail_arguments.R

Distribution parameters for dynfrail

1 2 | ```
dynfrail_dist(dist = "gamma", theta = 2, pvfm = -1/2, lambda = 0.1,
n_ints = NULL, times = NULL)
``` |

`dist` |
One of 'gamma', 'stable' or 'pvf'. |

`theta` |
Frailty distribution parameter. Must be >0. |

`pvfm` |
Only relevant if |

`lambda` |
Frailty autocorrelation parameter. Must be >0. |

`n_ints` |
For piece-wise constant frailty, the number of intervals. With |

`times` |
A vector of time points which determine the piecewise-constant interval for the frailty. Overrides |

The `theta`

and `lambda`

arguments must be positive. In the case of gamma or PVF, `theta`

is the inverse of
the frailty variance, i.e. the larger the `theta`

is,
the closer the model is to a Cox model. When `dist = "pvf"`

and `pvfm = -0.5`

, the inverse Gaussian
distribution is obtained.
For the positive stable distribution, the *γ* parameter of the Laplace transform is
*θ / (1 + θ)*, with the *alpha* parameter fixed to 1.

An object of the type `dynfrail_dist`

, which is mostly used to denote the
supported frailty distributions in a consistent way.

1 2 3 4 5 | ```
dynfrail_dist()
# Compound Poisson distribution:
dynfrail_dist(dist = 'pvf', theta = 1.5, pvfm = 0.5)
# Inverse Gaussian distribution:
dynfrail_dist(dist = 'pvf')
``` |

dynfrail documentation built on Nov. 17, 2017, 6:15 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.