Description Author(s) Examples
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.
Zhou Fang <zhou.fang@bioss.ac.uk>
with contributions and help from Javier Palarea.
1 | ## see examples for tobit1 and tobit2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.