cenGAM-package {cenGAM} | R Documentation |
Censored response additive modelling for mgcv
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
## see examples for tobit1 and tobit2
[Package cenGAM version 0.5.3 Index]