CompMargRates: Compare Marginal Event Rates.

Description Usage Arguments Value

View source: R/6_Main.R

Description

Given stratified event count data for two arms, analyze the marginal event rates via the risk difference, risk ratio, and odds ratio.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
CompMargRates(
  y0,
  n0,
  y1,
  n1,
  weights = NULL,
  alpha = 0.05,
  boot = FALSE,
  perm = FALSE,
  reps = 2000,
  exclude_double_zero = FALSE
)

Arguments

y0

Events per category in arm 0.

n0

Subjects per category in arm 0.

y1

Events per category in arm 1.

n1

Subjects per category in arm 1.

weights

Stratum mixing weights. If omitted, defaults to the stratum proportions.

alpha

Type I error.

boot

Calculate bootstrap confidence intervals?

perm

Perform a permutation-type test of the null?

reps

Replicates for bootstrap/permutation.

exclude_double_zero

Exclude strata with no events in either arm?

Value

Object of class 'margRates' containing these slots:


zrmacc/MargRates documentation built on Jan. 1, 2021, 1:55 p.m.