Learn R Programming

oneinfl (version 1.0.2)

summary.oneinflmodel: Summarize One-Inflated Regression Models

Description

Provides a summary of the fitted model, including estimated coefficients, standard errors, significance levels, and other relevant statistics.

Usage

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

Value

Prints a summary table of coefficients, standard errors, z-values, p-values, significance codes, one-inflation probabilities, and log-likelihood.

Arguments

object

A model object of class `"oneinflmodel"` (for one-inflated models).

...

Additional arguments (currently unused).

Details

This function generates a detailed summary of the fitted model, including: - Estimated coefficients for the rate component (beta). - Estimated coefficients for the one-inflation component (gamma). - Standard errors. - z-statistics, associated p-values, and corresponding significance codes. - Average, and average absolute, one-inflation. - Log-likelihood of the fitted model.

See Also

oneinfl for fitting one-inflated models.

Examples

Run this code
# Example usage
df <- data.frame(x = rnorm(100), z = rnorm(100), y = rpois(100, lambda = 5))
model <- oneinfl(y ~ x | z, df = df, dist = "Poisson")
summary(model)

Run the code above in your browser using DataLab