MakeCensWeights: Additive hazard weights for censoring.

Usage Arguments Details Value Author(s) Examples

Usage

1
2
MakeCensWeights(fFit, cfFit, data, startTimeName, stopTimeName,
                             endStatusName, intStatusName, idName) 

Arguments

fFormula

The aalen fit for the graph hazard.

cfFormula

The aalen fit for the counterfactual hazard.

data

Data frame on long format,

startTimeName

Name of column with start-time of the at-risk period,

stopTimeName

Name of column with stop-time of the at-risk period,

endStatusName

Name of the variable that contains the name of end state for each at-risk interval,

intStatusName

Name of the variable that contains the initial state for each at-risk interval,

idName

Name of column in data that identifies individuals.

Details

Uses aalen to perform the two additive hazard models, and then RefineTimeScale to subdivide data such that the subdivision is compatible with every change of the weights. The weights are then computed as a stochastic exponential (product integral), i.e.

Value

Sufficiently expanded version of the data frame data where the weights are appended.

Author(s)

Kjetil Røysland <kjetil.roysland@medisin.uio.no>

Examples

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

## The function is currently defined as





{ ~kwd1 }
{ ~kwd2 }

kjetilroysland/ahw documentation built on May 20, 2019, 10:25 a.m.