regadditivefit: regadditivefit function

Description Usage Arguments Value

View source: R/regadditivefit.R

Description

fit an additive hazard without using IV method

Usage

1
2
regadditivefit(survtime, cause, comp = FALSE, treatment = NULL,
  covariates = NULL)

Arguments

survtime

the event time

cause

the indicator records the cause. Default to all one. Zero means right censoring. Greater than or equal to two means other cause.

comp

the indicator of whether modeling subdistribution hazard

treatment

the treatment variable, can be null

covariates

all the observed confounders

Value

the fitting result, a list containing the cofficients, the baseline function, the variance covariance function of the coefficients and the byproduct including some pieces during the computing process


andrewyyp/tsriadditive documentation built on May 25, 2019, 9:23 a.m.