Description Usage Arguments Details Value Author(s) See Also
View source: R/probtrans_fft.R
Compute subject-specific transition probabilities using a convolution algorithm based on the Fast Fourier transform.
1 | probtrans_fft(initial_state, cumhaz, time)
|
initial_state |
The present function estimates state occupation probabilities from the state given in this argument. |
cumhaz |
An |
time |
A vector of positive and increasing time points starting from and including zero. |
The time
argument is crucial for precision.
The density of time points and
the upper time limit should
be increased until the estimated curves become stable.
A useful rule of thumb is to set the upper time limit
to a time point in which the
probability of each transient state is zero and the probability of
each absorbing state is constant.
The algorithm behind probtrans_ebmstate
is based
on the convolution of density and survival functions and
is suitable for processes with a tree-like transition
structure only.
An object of class 'probtrans'. See the 'value'
section in the help page of mstate::probtrans
.
Rui Costa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.