print.gofcens {GofCens} | R Documentation |
Printing method for gofcens
object.
Description
Printing method for gofcens
object.
Usage
## S3 method for class 'gofcens'
print(x, prnt = TRUE, outp = c("list", "table"), ...)
Arguments
x |
An object of class |
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 |
outp |
Indicator of how the output will be displayed. The possible formats are |
... |
Additional arguments. |
Value
If prnt = TRUE
, a list or table (if outp = "table"
) containing the following components:
Distribution |
Null distribution. |
Null hypothesis |
Parameters under the null hypothesis (if |
Tests statistics |
Values of the Kolmogovor-Smirnov, Cramér-von Mises, and Anderson-Darling test statistics. |
p-value |
P-values associated with each test. |
Parameters |
List with the maximum likelihood estimates of the parameters of the distribution under study. |
The list is also returned invisibly.
Author(s)
K. Langohr, M. Besalú, M. Francisco, G. Gómez.
Examples
## Not run:
# 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")
## End(Not run)