Learn R Programming

GofCens (version 1.1)

print.KScens: Printing method for KScens object.

Description

Printing method for KScens object.

Usage

# S3 method for KScens
print(x, prnt = TRUE, outp = c("list", "table"), ...)

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 params0 is provided).

A

Value of the modified Kolmogorov-Smirnov statistic.

p-value

P-value.

F(y_m)

Estimation of the image of the last recorded time.

y_m

Last recorded time.

Parameters

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

The list is also returned invisibly.

Arguments

x

An object of class KScens.

prnt

Logical to indicate if the estimations of the Kolmogorov-Smirnov statistic and p-value should be printed. Default is TRUE.

outp

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

...

Additional arguments.

Author

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

Examples

Run this code
# List output
set.seed(123)
KScens(times = rweibull(1000, 12, scale = 4), distr = "weibull")
  
# Table output
set.seed(123)
print(KScens(times = rweibull(1000, 12, scale = 4), distr = "weibull"), 
      outp = "table")

Run the code above in your browser using DataLab