Learn R Programming

gkwreg (version 1.0.7)

print.gkwfit: Print Method for gkwfit Objects

Description

Prints a concise summary of a model fitted by the gkwfit function, displaying the call, estimated coefficients, log-likelihood, AIC, BIC, number of observations, and a convergence warning if applicable.

Usage

# S3 method for gkwfit
print(x, digits = max(3, getOption("digits") - 3), ...)

Value

Invisibly returns the original input object x. Called for its side effect of printing to the console.

Arguments

x

An object of class "gkwfit", typically the result of a call to gkwfit.

digits

Integer; the minimum number of significant digits to be printed in values. Defaults to max(3, getOption("digits") - 3).

...

Additional arguments passed to underlying print methods (currently unused).

Author

Lopes, J. E.

See Also

gkwfit, summary.gkwfit

Examples

Run this code
# \donttest{
# Generate a small sample from Kumaraswamy distribution
set.seed(2203)
y <- rkw(50, alpha = 2.5, beta = 1.5)

# Fit the model with minimal options for speed
fit <- gkwfit(data = y, family = "kw", plot = FALSE, silent = TRUE)

# Print method displays concise model summary
print(fit)

# Alternative: object prints automatically when returned
fit
# }

Run the code above in your browser using DataLab