peters_test: Perform Peters Test

Description Usage Arguments Value

View source: R/test_functions.R

Description

Perform Peters Test

Usage

1
peters_test(or_sim, n, a, b, c, d, sig_threshold = 0.1)

Arguments

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

Value

A logical value indicating whether the p value was below the sig_threshold


replisims/peters-2016 documentation built on Aug. 6, 2020, 12:15 a.m.