as.matrix.pvlrt | R Documentation |
pvlrt
object as a matrix of log LR statisticsCasting a pvlrt
object as a matrix of log LR statistics
## S3 method for class 'pvlrt' as.matrix(x, ...)
x |
a |
... |
other input parameters. Currently unused. |
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.
pvlrt
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.