predictDesign: Internal function to Calculate Predicted Competing Risks...

Description Usage Arguments Details Value

View source: R/predict.Design.R

Description

Internal function to Calculate Predicted Competing Risks Probability.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
predictDesign(
  fit,
  newdata = NULL,
  type = c("lp", "x", "data.frame", "terms", "adjto", "adjto.data.frame",
    "model.frame"),
  se.fit = FALSE,
  conf.int = FALSE,
  conf.type = c("mean", "individual"),
  incl.non.slopes = NULL,
  non.slopes = NULL,
  kint = 1,
  na.action = na.keep,
  expand.na = TRUE,
  center.terms = TRUE,
  ...
)

Arguments

fit

a saved crr model fit crated by function crr.fit

newdata

data frame for prediction. Each row of the data frame contains values of covariates that are required in the crr model. If missing, the original data set that was used to develop the crr model will be used for prediction.

Details

Calculate predicted probabilities for a competing risks regression model

Value

A vector with the length equal to the number of rows in the data frame, which was used to make prediction. Each element corresponds to a predicted failure probability at the expected time point.


jixccf/QHScrnomo documentation built on Dec. 21, 2021, 12:08 a.m.