bootstrap.cc: A helper function to bootstrap risk function correcting for...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

A helper function to bootstrap risk function correcting for misclassification between censoring and competing events

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bootstrap.cc(
  B,
  bdat1,
  t = "t",
  delta = "delta",
  tau,
  p = "p",
  sep = "sep",
  seed = 456
)

Arguments

B

number of bootstrap samples to draw

bdat1

input data source containing main study data

t

character string denoting name of time variable

delta

character string denoting name of event type variable

tau

final follow-up time for which risks and standard errors will be reported

p

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

sep

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

seed

seed

weights

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

Value

standard error of the cumulative incidence (i.e., risk) function at time tau

Examples

1
2
 se <- bootstrap.cc(B, data, t = "t", delta = "j", tau, p = "p", sep = "selogitp", seed=123)
 

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