cenGAM-package: Censored response additive modelling for mgcv

Description Author(s) Examples

Description

cenGAM provides tobit1 and tobit2 families for generalized additive modelling with the gam function in the mgcv package.

Under the Tobit I model, the user supplies a left and/or right threshold (optionally differing between observations, and potentially infinite to denote no censorship) and the response is assumed to be censored if it falls over this threshold. Under the Tobit II model, a more generalised model is assumed where we fit a second additive model that gives whether each observation is censored, with a possible correlation between the error in the response and the censorship.

Seen help for the individual functions for more details.

Author(s)

Zhou Fang <zhou.fang@bioss.ac.uk>

with contributions and help from Javier Palarea.

Examples

1
## see examples for tobit1 and tobit2

Example output

Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.8-24. For overview type 'help("mgcv-package")'.

cenGAM documentation built on May 1, 2019, 6:29 p.m.