Printing method for gofcens object.

# S3 method for class 'gofcens'
print(x, prnt = TRUE, outp = c("list", "table"),  degs = 3, print.AIC = TRUE,
      print.BIC = TRUE, print.infoBoot = FALSE,  ...)

Arguments

x

An object of class gofcens.

prnt

Logical to indicate if the values of the Kolmogovor-Smirnov, Cramér-von Mises, and Anderson-Darling test statistics along with the p-values should be printed. Default is TRUE.

outp

Indicator of how the output will be displayed. The possible formats are list and table.

degs

Integer indicating the number of decimal places of the numeric results of the output.

print.AIC

Logical to indicate if the AIC of the model should be printed. Default is TRUE

print.BIC

Logical to indicate if the BIC of the model should be printed. Default is TRUE

print.infoBoot

Logical to indicate if the number of bootstrap samples used should be printed. Default is FALSE

...

Additional arguments.

Value

If prnt = TRUE, a list or table (if outp = "table") containing the following components:

Distribution

Null distribution.

Hypothesis

Parameters under the null hypothesis (if params0 is provided).

Test

Vector containing the values of the Kolmogovor-Smirnov (KS), Cramér-von Mises (CvM), and Anderson-Darling (AD) test statistics and the estimated p-value (p-value).

Estimates

Vector with the maximum likelihood estimates of the parameters of the distribution under study.

StdErrors

Vector containing the estimated standard errors.

aic

The Akaike information criterion.

bic

The so-called BIC or SBC (Schwarz Bayesian criterion).

BS

The number of bootstrap samples used.

The list is also returned invisibly.

Author

K. Langohr, M. Besalú, M. Francisco, A. Garcia, G. Gómez.

Examples

if (FALSE) { # \dontrun{
# List output
set.seed(123)
gofcens(times = rweibull(100, 12, scale = 4), distr = "weibull",
        BS = 149)

# Table output
set.seed(123)
print(gofcens(times = rweibull(100, 12, scale = 4), distr = "weibull",
              BS = 149), outp = "table")
} # }