| prediction_margins | R Documentation |
Methods to compute the predictions and the marginal effects for tobit1 objects
## S3 method for class 'mhurdle'
prediction(
model,
data = find_data(model, parent.frame()),
at = NULL,
what = c("E", "Ep", "p"),
vcov = stats::vcov(model),
calculate_se = FALSE,
...
)
model |
a model fitted using |
data, at, vcov, calculate_se |
see |
what |
see |
... |
further arguments, especially, a |
tobit1 exports the prediction::prediction and
margins::margins functions. prediction use the predict
method to compute the predictions in a "tidy way", it returns
the data frame provided for the predictions augmented by the
predictions. margins compute the average marginal effect of
every covariate. It uses the numerical derivatives of the
predictions using the prediction function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.