SiteRisksetsByStrata: Construct risk set data stratifying on a variable

Description Usage Arguments Value Author(s)

Description

Gives a stratified risk set data. See SiteRisksetsHelper for details about the risk set data within each stratum. If not strata vector is supplied, one stratum with value NA is assumed.

Usage

1
SiteRisksetsByStrata(time = NULL, event, A, W = NULL, strata = NULL)

Arguments

time

vector of the observed time variable. If omitted, taken to be all 0. Omit when event is a binary outcome variable without an accompanying time variable.

event

vector of the event status binary variable (must be 0, 1). A binary outcome variable can also be used if the outcome of interest is such a variable.

A

vector of the exposure status variable (must be 0, 1).

W

vector of the weights. Omit if not weighting.

strata

vector of stratifying variable

Value

reduced stratified risk set data frame having one row for each unique evaluation time for each strata.

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.