coef.htobit {htobit} | R Documentation |
Methods for extracting information from fitted htobit
objects.
## S3 method for class 'htobit' coef(object, model = c("full", "location", "scale"), ...) ## S3 method for class 'htobit' vcov(object, model = c("full", "location", "scale"), ...) ## S3 method for class 'htobit' terms(x, model = c("location", "scale", "full"), ...) ## S3 method for class 'htobit' model.matrix(object, model = c("location", "scale"), ...)
object, x |
an object of class |
model |
character indicating (sub)model for which information should be extracted. |
... |
currently not used. |
In addition to the methods above, a set of standard extractor functions for
"htobit"
objects is available, see htobit
for an overview.
## heteroscedastic tobit model for budget share of alcohol data("AlcoholTobacco", package = "htobit") AlcoholTobacco$persons <- with(AlcoholTobacco, adults + oldkids + youngkids) ma <- htobit(alcohol ~ age + log(expenditure) + persons | age + log(expenditure) + persons, data = AlcoholTobacco) ## extract coefficients coef(ma) coef(ma, model = "location") coef(ma, model = "scale") ## corresponding model matrices head(model.matrix(ma, model = "location")) head(model.matrix(ma, model = "scale"))