test_RR: Calculate RR test statistic

Description Usage Arguments Value Examples

View source: R/Non_Inferiority_RD_RR.R

Description

test_RR returns the value of the Farrington-Manning test statistic for non-inferiority of the risk ratio between two proportions.

Usage

1
test_RR(x_E, x_C, n_E, n_C, delta, better)

Arguments

x_E

Vector of number of events in experimental group.

x_C

Vector of number of events in control group.

n_E

Sample size in experimental group.

n_C

Sample size in control group.

delta

Non-inferiority margin.

better

"high" if higher values of \mjseqnx_E favour the alternative hypothesis and "low" vice versa.

Value

Vector of values of the RD test statistic.

Examples

1
test_RD(3, 4, 10, 10, 0.2, "high")

s-kilian/binary documentation built on Sept. 26, 2021, 6:28 p.m.