as.matrix.pvlrt {pvLRT} | R 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 |
... |
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
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)
[Package pvLRT version 0.5.1 Index]