coxfitter: Fits Cox model using coxph() function

Description Usage Arguments Value Author(s) Examples

View source: R/tccox.r

Description

Calls coxph() function to fit Cox model

Usage

1
coxfitter(dataset1, ncov, cov_names)

Arguments

dataset1

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_cox1

fitted coefficient of treatment term

treatse_cox1

fitted SE of treatment term

fit_cox

fit of Cox model

Author(s)

James F. Troendle

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)
{
  }

tccox documentation built on Dec. 3, 2017, 5:04 p.m.