View source: R/pvlrt-postprocessing-utils.R
extract_lrstat_matrix | R Documentation |
Extract various summary measures from a pvlrt object
extract_lrstat_matrix(object, ...) extract_p_value_matrix(object, ...) extract_zi_probability(object, ...) extract_n_matrix(object, ...) extract_significant_pairs(object, significance_level = 0.05, ...) extract_run_time(object, ...)
object |
a |
... |
other input parameters. Currently unused. |
significance_level |
numeric. Level of significance. |
extract_lrstat_matrix
returns the matrix of
the computed log-likelihood ratio test statistics for signals. This produces
a result identical to applying as.matrix
.
extract_p_value_matrix
returns the matrix of
computed p-values associated with the likelihood ratio tests.
extract_zi_probability
returns a vector of (estimated)
zero-inflation probabilities.
extract_n_matrix
returns the original contingency table (matrix)
used.
extract_significant_pairs
returns a data.table listing the AE/drug
pairs determined to be significant at the provided significance level. This
is essentially a subset of the data.table obtained through summary.pvlrt()
that satisfies the provided significance threshold.
extract_run_time
returns a difftime object measuring the
total CPU time needed to run the original pvlrt call.
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, test_zi = TRUE, nsim = 500) extract_lrstat_matrix(test1) extract_p_value_matrix(test1) extract_zi_probability(test1) extract_n_matrix(test1) extract_significant_pairs(test1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.