Usage Arguments Details Value Author(s) Examples
1 2 | MakeCensWeights(fFit, cfFit, data, startTimeName, stopTimeName,
endStatusName, intStatusName, idName)
|
fFormula |
The |
cfFormula |
The |
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 |
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.
Sufficiently expanded version of the data frame data
where the weights
are appended.
Kjetil Røysland <kjetil.roysland@medisin.uio.no>
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 }
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.