print.chisqcens {GofCens}R Documentation

Printing method for chisqcens object.

Description

Printing method for chisqcens object.

Usage

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

Arguments

x

An object of class chisqcens.

prnt

Logical to indicate if the estimations of the chi-squared 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.

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

Statistic

Value of the test statistic.

p-value

Estimated p-value.

Parameters

The values of the parameters of the null distribution. If the user has set the parameters manually, these will be the returned parameters, otherwise the maximum likelihood estimates are returned.

CellNumber

Vector with two values: the original cell number introduced by the user and the final cell number used.

The list is also returned invisibly.

Author(s)

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

Examples

# List output
set.seed(123)
chisqcens(times = rweibull(100, 12, scale = 4), M = 8, distr = "weibull",
          BS = 149)

# Table output
set.seed(123)
print(chisqcens(times = rweibull(100, 12, scale = 4), M = 8, distr = "weibull",
                BS = 99), outp = "table")

[Package GofCens version 1.1 Index]