comp.cens.cor: A function to estimate a nonparametric cumulative incidence...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

A function to estimate a nonparametric cumulative incidence function accounting for misclassification between competing events and censoring events #'

Usage

1
2
3
4
5
6
7
8
comp.cens.cor(
  data = data,
  tau,
  t = "t",
  delta = "delta",
  weights = "NULL",
  p = "p"
)

Arguments

data

input data source containing main study data, specifically time variable and outcome type

tau

final follow-up time

t

character string denoting name of time variable

delta

character string denoting name of event type variable

weights

character string denoting name of variable containing weights (e.g., survey sampling weights, inverse probability weights, etc)

p

a character string denoting name of the variable containing the probability that person i is in care elsewhere

Value

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

Examples

1
 prop<-comp.cens.cor(data=art, tau=2*365.25, t="t", delta="j", p=0.24, N=1000)

edwardsjk/mccc documentation built on March 30, 2020, 4:13 p.m.