powered by
Provides a summary of the fitted model, including estimated coefficients, standard errors, significance levels, and other relevant statistics.
# S3 method for truncmodel summary(object, ...)
Prints a summary table of coefficients, standard errors, z-values, p-values, significance codes, and log-likelihood.
A model object of class "truncmodel" (for truncated models).
"truncmodel"
Additional arguments (currently unused).
This function generates a detailed summary of the fitted model, including:
Estimated coefficients for the rate component (beta).
beta
Standard errors.
z-statistics, associated p-values, and corresponding significance codes.
Log-likelihood of the fitted model.
truncreg for fitting truncated regression models.
truncreg
# 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