as.matrix.pvlrt: Casting a 'pvlrt' object as a matrix of log LR statistics

as.matrix.pvlrtR Documentation

Casting a pvlrt object as a matrix of log LR statistics

Description

Casting a pvlrt object as a matrix of log LR statistics

Usage

## S3 method for class 'pvlrt'
as.matrix(x, ...)

Arguments

x

a pvlrt object; an output of function pvlrt().

...

other input parameters. Currently unused.

Value

Returns a matrix with the same dimensions as the input contingency table in the original pvlrt call, with each cell providing the corresponding value of the observed log-likelihood ratio test statistic.

See Also

pvlrt

Examples


# 500 bootstrap iterations (nsim) in the example below
# are for quick demonstration only --
# we recommended setting nsim to 10000 (default) or bigger

test1 <- pvlrt(statin46, nsim = 500)
as.matrix(test1)


pvLRT documentation built on March 7, 2023, 7:17 p.m.