au.test.strat: Stratified AU testing

Description Usage Arguments Value Examples

View source: R/au.test.strat.r

Description

Calculates AU p-values for testing independence in 2x2 case-control tables, while adjusting for categorical covariates. Inputs are given as a vector of counts in each strata defined by the covariate(s). Note that computational time can be extremely high.

Usage

1
au.test.strat(m0list, m1list, r0list, r1list, lowthresh = 1e-12)

Arguments

m0list

Number of control subjects in each strata

m1list

Number of case subjects in each strata

r0list

Number of control subjects exposed in each strata

r1list

Number of case subjects exposed in each strata

lowthresh

A threshold for probabilities below to be considered as zero. Defaults to 1e-12.

Value

An AU p-value, computed under the likelihood ratio test.

Examples

1
au.test.strat(c(500, 1250), c(150, 100), c(0, 0), c(10, 5))

AUtests documentation built on Sept. 4, 2020, 1:07 a.m.