cif_adj: A function to account for differential misclassification in...

Description Usage Arguments Value Examples

View source: R/cif_adj.R

Description

A function to account for differential misclassification in cumulative incidence functions

Usage

1
2
cif_adj(data = data, data_evd = data_evd, t = "x", obs = "c_obs",
  true = "c", level = 1, tau = 1, diff_by = NA)

Arguments

data

input data source containing main study data

data_evd

intput data source containing validation data with variables true outcome and misclassified outcome as well as any variable by which misclassification may be differential.

t

name of the time variable in main study data

obs

name of variable denoting possibly misclassified outcome type in both main and validation datasets

true

name of variable denoting true outcome type (in validation data only)

level

level of outcome for which to estimate cumulative incidence

tau

maximum follow-up time

diff_by

name of variable in main study and validation dataset by which misclassification is differential

Value

data frame with event times and corrected cumulative incidence function for outcome of interest

Examples

1
cif_adj(data = mydata, data_evd = valdata, t = "x", obs = "c_obs", true = "c", level = 1, tau = 2, diff_by = "diffx")

edwardsjk/mccr documentation built on May 22, 2019, 2:18 p.m.