Learn R Programming

oneinfl (version 1.0.2)

summary.truncmodel: Summarize Truncated 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 truncmodel
summary(object, ...)

Value

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

Arguments

object

A model object of class `"truncmodel"` (for truncated models).

...

Additional arguments (currently unused).

Details

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

See Also

truncreg for fitting truncated regression models.

Examples

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

Run the code above in your browser using DataLab