Tobit: Prepare a Response for a Tobit Model

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns a Surv object that allows for setting up a Tobit regression model by calling survreg

Usage

1
Tobit(data, limit = 0, limhigh = NULL, transform = NULL, log = FALSE, ...)

Arguments

data

the variable to be used as the response in the Tobit regression

limit

Lower limit which censors the observations. If log is TRUE, then the default is the minimal value of logst(data), and if limit>0, it refers to the untransformed data.

limhigh

Upper limit which censors the observations (for untransformed data).

transform

if data should be transformed, specify the function to be used.

log

logical. If TRUE, data will be log transformed by calling logst. Argument transform will be ignored.

...

any additional arguments to the transform function

Details

Tobit regression is a special case of regression with left censored response data. The function survreg is suitable for fitting. In regr, this is done automatically.

Value

A Surv object.

Author(s)

Werner A. Stahel

See Also

Surv

Examples

1
2
3
4
5
data("tobin", package="survival")

Tobit(tobin$durable) 
(t.r <- regr(Tobit(durable) ~ age + quant, data=tobin))
plot(t.r)

regr0 documentation built on May 2, 2019, 4:52 p.m.