Learn R Programming

flexCountReg (version 0.1.1)

summary.flexCountReg: Custom summary method for flexCountReg models

Description

Custom summary method for flexCountReg models

Usage

# S3 method for flexCountReg
summary(object, ...)

Value

Prints the model formula, method used for estimation, number of iterations used, if the model converged, and the log-likelihood. Then, it prints a table containing parameter estimates, standard errors, t-statistics, p-values, and confidence intervals. Also quietly returns a tibble with these values.

Arguments

object

A flexCountReg model object.

...

Optional parameters that include `confint_level` and `digits`.

Details

This summary method accounts for bootstrapped or robust standard errors (when used).

Examples

Run this code
# \donttest{
# NB2 Model
data("washington_roads")
washington_roads$AADT10kplus <- ifelse(washington_roads$AADT > 10000, 1, 0)
nb2 <- countreg(Total_crashes ~ lnaadt + lnlength + speed50 + AADT10kplus,
                data = washington_roads, family = "NB2",
                dis_param_formula_1 = ~ speed50, method='BFGS')
summary(nb2)
# }

Run the code above in your browser using DataLab