cif_naive: A function to estimate a nonparametric cumulative incidence...

Description Usage Arguments Value Examples

View source: R/cif_naive.R

Description

A function to estimate a nonparametric cumulative incidence function

Usage

1
cif_naive(data = data, t = "x", type = "c_obs", level = 1, tau = 1)

Arguments

data

input data source containing main study data

t

name of the time variable

type

name of variable denoting outcome type

level

level of outcome for which to estimate cumulative incidence

tau

final follow-up time

Value

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

Examples

1
cif_naive(mydata, t = "x", type = "c_obs", level = 1, tau = 2)

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