Description Usage Arguments Value
View source: R/test_functions.R
Perform Peters Test
1 | peters_test(or_sim, n, a, b, c, d, sig_threshold = 0.1)
|
or_sim |
or_sim Simulated odds ratio (as opposed to the OR give as a simulation parameter) |
n |
Number of aprticipants in intervention and controlgroup (i.e. half the sample size) |
a |
a from confusion matrix (i.e. number of events in exposed group) |
b |
b from confusion matrix (i.e. number of events in control group) |
c |
c fom confusion matrix (i.e. number of non-events in exposed group) |
d |
d from confusion matrix (i.e. number of non events in control group) |
sig_threshold |
threshold of significace defaults to 0.1 as in the original simulation |
A logical value indicating whether the p value was below the sig_threshold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.