print.gkwfit: Print Method for gkwfit Objects

print.gkwfitR Documentation

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 class 'gkwfit'
print(x, digits = max(3, getOption("digits") - 3), ...)

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).

Value

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

Author(s)

Lopes, J. E.

See Also

gkwfit, summary.gkwfit

Examples


# 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



gkwreg documentation built on April 16, 2025, 1:10 a.m.