tobit1 | R Documentation |
Estimation of models for which the response is truncated, either on censored or truncated samples using OLS, NLS, maximum likelihood, two-steps estimators or trimmed estimators
tobit1(
formula,
data,
subset,
weights,
na.action,
offset,
contrasts = NULL,
start = NULL,
left = 0,
right = Inf,
scedas = NULL,
sample = c("censored", "truncated"),
method = c("ml", "lm", "twostep", "trimmed", "nls", "minchisq", "test"),
opt = c("bfgs", "nr", "newton"),
maxit = 100,
trace = 0,
check_gradient = FALSE,
...
)
## S3 method for class 'tobit1'
fitted(object, ...)
formula |
a symbolic description of the model; if two right
hand sides are provided, the second one described the set of
instruments if |
data , subset , weights , na.action , offset , contrasts |
see |
start |
an optional vector of starting values |
left , right |
left and right truncation points for the response 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, either |
sample |
either |
method |
one of |
opt |
optimization method |
maxit |
maximum number of iterations |
trace |
printing of intermediate result |
check_gradient |
if |
... |
further arguments |
object |
a |
An object of class c("tobit1", "micsr")
, see
micsr::micsr
for further details.
Yves Croissant
POWE:86micsr
charitable$logdon <- with(charitable, log(donation) - log(25))
ml <- tobit1(logdon ~ log(donparents) + log(income) + education +
religion + married + south, data = charitable)
scls <- update(ml, method = "trimmed")
tr <- update(ml, sample = "truncated")
nls <- update(tr, method = "nls")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.