accept: A flexible version of ACCEPT 2.0 model, which imputes...

View source: R/predict.R

acceptR Documentation

A flexible version of ACCEPT 2.0 model, which imputes predictors using MICE approach.

Description

A flexible version of ACCEPT 2.0 model, which imputes predictors using MICE approach.

Usage

accept(
  newdata,
  format = "tibble",
  version = "flexccept",
  prediction_interval = FALSE,
  return_predictors = FALSE,
  ...
)

Arguments

newdata

new patient data with missing values to be imputed before prediction with the same format as accept samplePatients.

format

default is "tibble". Can also be set to "json".

version

indicates which version of ACCEPT needs to be called.

prediction_interval

default is FALSE. If set to TRUE, returns prediction intervals of the predictions.

return_predictors

default is FALSE. IF set to TRUE, returns the predictors along with prediction results.

...

for other versions of accept.

Value

patientData with prediction.

Examples

results <- accept(newdata = samplePatients)

resplab/accept documentation built on July 5, 2023, 2:25 p.m.