Description Usage Arguments Value Author(s) References Examples
Adds ITC covariates to dataset
Calls coxph() function to fit ITC model
| 1 2 | itcfitter(dataset, ncov, cov_names, nitc_start, itc_start_endpoint, nitc_stop,
 itc_stop_endpoint, tstartp, tstopp)
 | 
| 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) | 
| nitc_start | number of ITC starting intervals | 
| itc_start_endpoint | vector containing the endpoints of the ITC starting intervals | 
| nitc_stop | number of ITC stopping intervals | 
| itc_stop_endpoint | vector containing the endpoints of the ITC starting intervals | 
| tstartp | matrix whose columns are the ITC starting covariate values | 
| tstopp | matrix whose columns are the ITC stopping covariate values | 
| treatcoef_tc3  | fitted coefficient of treatment term | 
| treatse_tc3  | fitted SE of treatment term | 
| fit_itc | fit of ITC model | 
| cov_names3 | vector containing the covariate names of the ITC model | 
James F. Troendle
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.
| 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)
{
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.