escount | R Documentation |
Heckman's like estimator for count data, using either maximum likelihood or a two-steps estimator
escount(
formula,
data,
subset,
weights,
na.action,
offset,
start = NULL,
R = 16,
hessian = FALSE,
method = c("twosteps", "ml"),
model = c("es", "ss")
)
formula |
a |
data |
a data frame, |
subset , weights , na.action , offset |
see |
start |
an optional vector of starting values, |
R |
the number of points for the Gauss-Hermite quadrature |
hessian |
if |
method |
one of |
model |
one of |
an object of class c("escount,micsr)"
, see micsr::micsr
for further details.
Yves Croissant
TERZ:98micsr
\insertRefGREE:01micsr
trips_2s <- escount(trips | car ~ workschl + size + dist + smsa + fulltime + distnod +
realinc + weekend + car | . - car - weekend + adults, data = trips, method = "twosteps")
trips_ml <- update(trips_2s, method = "ml")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.