ivtobit | R Documentation |
Estimation of simultaneous-equation models when the response is trunctaed
ivtobit( formula, data, subset = NULL, left = 0, right = Inf, method = c("ml", "2steps"), robust = TRUE, trace = 0 )
formula |
a symbolic description of the model, |
data |
a data frame, |
subset |
a subset, |
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, |
method |
one of |
robust |
a boolean, if |
trace |
a boolean (the default if |
An object of class c('tobit1', 'lm')
, see tobit1::tobit1
for more details.
Yves Croissant
SMIT:BLUN:86tobit1
inst <- ~ sic3 + k_serv + inv + engsci + whitecol + skill + semskill + cropland + pasture + forest + coal + petro + minerals + scrconc + bcrconc + scrcomp + bcrcomp + meps + kstock + puni + geog2 + tenure + klratio + bunion tradeprotection <- dplyr::mutate(tradeprotection, y = ntb / (1 + ntb), x1 = exports / imports / elast, x2 = cap * x1) GH <- ivtobit(Formula::as.Formula(y ~ x1 + x2, inst), tradeprotection, method = "2steps") Full <- ivtobit(Formula::as.Formula(y ~ x1 + x2 + labvar, inst), tradeprotection, method = "2steps") Short <- ivtobit(Formula::as.Formula(y ~ x1 + I(x2 + labvar), inst), tradeprotection, method = "2steps")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.