cif_adj_nondiff: A function to account for nondifferential misclassification...

Description Usage Arguments Value Examples

View source: R/cif_adj_nondiff.R

Description

A function to account for nondifferential misclassification in cumulative incidence functions

Usage

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

Arguments

data

input data source containing main study data

data_evd

intput data source containing validation data with variables true outcome and misclassified outcome

t

name of the time variable

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

Value

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

Examples

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

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