survival (version 2.43-3)

tobin: Tobin's Tobit data

Description

Economists fit a parametric censored data model called the ‘tobit’. These data are from Tobin's original paper.

Usage

tobin

Arguments

Format

A data frame with 20 observations on the following 3 variables.

durable

Durable goods purchase

age

Age in years

quant

Liquidity ratio (x 1000)

Examples

Run this code
# NOT RUN {
tfit <- survreg(Surv(durable, durable>0, type='left') ~age + quant,
                data=tobin, dist='gaussian')

predict(tfit,type="response")

# }

Run the code above in your browser using DataCamp Workspace