| tobit1 | R Documentation |
Estimation of models for which the response is truncated, either on censored or truncated samples using linear models, maximum likelihood or two-steps estimators
tobit1(
formula,
data,
subset = NULL,
weights = NULL,
start = NULL,
left = 0,
right = Inf,
scedas = c("exp", "pnorm"),
sample = c("censored", "truncated"),
method = c("ml", "lm", "2steps", "trimmed", "nls"),
trace = FALSE
)
## S3 method for class 'tobit1'
nobs(object, ...)
## S3 method for class 'tobit1'
vcov(object, ...)
## S3 method for class 'tobit1'
logLik(object, ...)
## S3 method for class 'tobit1'
summary(object, ...)
## S3 method for class 'tobit1'
print(x, digits = max(3L, getOption("digits") - 3L), ...)
## S3 method for class 'summary.tobit1'
print(
x,
digits = max(3, getOption("digits") - 2),
width = getOption("width"),
...
)
formula |
a symbolic description of the model; if two right hand sides are provided, the second one is used to parametrize the conditional variance, |
data |
a data frame, |
subset |
a subset, |
weights |
an optional vector of weights (currently only supported by ml method |
start |
an optional vector of starting values |
left, right |
left and right limits of the dependent variable. The default is respectively 0 and +Inf which corresponds to the most classic (left-zero truncated) tobit model, |
scedas |
the functional form used to specify the conditional
variance, which is of the form: s_n = s_o f(Z'g), where Z are
the covariates indicated in the second part of the formula and
z_o and g a set of parameters to estimate. Currently, f can
either be set to |
sample |
either |
method |
one of |
trace |
a boolean (the default if |
... |
further arguments. |
x, object |
an object of class |
digits, width |
see |
An object of class c('tobit1', 'lm'), which is a list containg the following components:
coefficients: a named vector of coefficients,
linear.predictor: the linear fit,
fitted.values: the fitted values,
residuals: the residuals,
df.residual: the residual degrees of freedom,
hessian: the hessian of the log-likelihood function at the optimum,
vcov: an estimator of the covariance matrix of the coefficients,
gradObs: a N x K matrix containing the individual contributions to the gradient,
logLik: the value of the log-likelihood at the optimum,
model: the model frame,
terms: the terms object used,
call: the matched call
xlevels: a record of the levels of the factors used in fitting
na.action: intormation returned by model.frame on the special handling of NA's.
Yves Croissant
# tobit model estimated by maximum likelihood tobit1(fees ~ expense, feesadm) # same using two-steps estimator tobit1(fees ~ expense, feesadm, method = "2steps") # same model fitted on the truncated sample tobit1(fees ~ expense, feesadm, sample = "truncated")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.