ptcfitter: Fits PTC Cox model using coxph() function

Description Usage Arguments Value Author(s) References Examples

Description

Calls coxph() function to fit PTC model

Usage

1
ptcfitter(dataset, ncov, cov_names)

Arguments

dataset

data.frame organized as expected by tc()

ncov

number of baseline covariates (including treatment) to be included in model

cov_names

vector of baseline covariate names (including treatment)

Value

treatcoef_tc1

fitted coefficient of treatment term

treatse_tc1

fitted SE of treatment term

fit_ptc

fit of PTC model

cov_names1

vector containing the covariate names of the PTC model

Author(s)

James F. Troendle

References

Troendle, JF, Leifer, E, Zhang Z, Yang, S, and Tewes H (2017) How to Control for Unmeasured Confounding in an Observational Time-To-Event Study With Exposure Incidence Information: the Treatment Choice Cox Model. Statistics in Medicine 36: 3654-3669.

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

trooper197/tccox documentation built on May 8, 2019, 6:56 p.m.