eventsbystrata: Summarize events per strata x arm

View source: R/bystrataCoreFuns.R

eventsbystrataR Documentation

Summarize events per strata x arm

Description

Summarizes number of events, subjects, and percent censoring within each strata and treatment arm from formed risk strata

Usage

eventsbystrata(treeStrata, arm, status, family = "cox")

Arguments

treeStrata

Vector of subject-level strata membership

arm

Treatment indicator, 1 = test treatment, 0 = control

status

For family="cox", the censoring status (1 = event, 0 = censored); for family="binomial" the case/control status

family

Trait family, current options: "cox" or "binomial"

Value

Table summarizing number of events, subjects, and percent censoring (for family = "cox") or percent controls (for family = "binomial") within each strata and treatment arm


rmarceauwest/fiveSTAR documentation built on June 30, 2023, 7:38 a.m.