| predict.wnpmle_cmprsk | R Documentation |
Evaluates the estimated marginal mean number of recurrent events,
\hat\mu(t \mid z) = G\{e^{\hat\beta^T z} \hat\Lambda(t)\}, at new
covariate values, with pointwise confidence limits.
## S3 method for class 'wnpmle_cmprsk'
predict(
object,
newdata = NULL,
times = NULL,
conf_int = TRUE,
conf_level = 0.95,
...
)
## S3 method for class 'wnpmle'
predict(
object,
newdata = NULL,
times = NULL,
conf_int = TRUE,
conf_level = 0.95,
...
)
object |
A |
newdata |
A data frame with the same covariates used in fitting
(factors may be given as factors or character strings).
If |
times |
Time points at which to evaluate the marginal mean.
If |
conf_int |
Logical; if |
conf_level |
Confidence level (default 0.95). |
... |
Ignored. |
For competing-risks fits (type = "cmprsk"), predict
returns the cumulative incidence of the event of interest,
\hat F_1(t \mid z) = 1 - \exp[-G\{e^{\hat\beta^T z} \hat\Lambda(t)\}],
in columns cif_i; the confidence limits are those of
G\{e^{\beta^T z}\Lambda(t)\} (delta method, log scale) mapped through
1 - \exp(-\cdot), so they stay within (0, 1).
The confidence limits are computed with the delta method from the
estimated covariance matrix of (\beta, \Lambda) (vcov(object)),
on the log scale so that they stay positive.
A data frame with column time and, for each row i of
newdata, columns mu_i and (if conf_int) lower_i
and upper_i; or columns mu (and lower, upper)
for the baseline.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.