View source: R/pec-eha-aftreg.R
This function uses eha::aftreg
to estimate IPCW for left-truncated
data based on an AFT Weibull model. Initially designed to be used in
conjunction with pec::pec
, however, pec
does not support
eha::aftreg
as a method for calculation of IPCWs. The function
is loosely based on pec:::ipcw.cox
and only supports calculating
IPCWs at specified times (what = "IPCW.times"
; see what
argument
in ?pec::ipcw
).
1 2 3 4 5 6 7 8 9 10 11 |
formula |
A survival formula like, |
data |
The data used for fitting the censoring model |
method |
Censoring model used for estimation of the (conditional) censoring distribution. |
args |
A list of arguments which is passed to method |
times |
For |
subjectTimes |
For |
subjectTimesLag |
If equal to |
what |
Decide about what to do: If equal to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.