Learn R Programming

scf (version 1.0.5)

predict.scf_model_result: Generic S3 Method: predict.scf_model_result

Description

Calculates predicted values for a new data set (or the original data) by pooling predictions across all multiply-imputed models.

Usage

# S3 method for scf_model_result
predict(object, newdata, type = "link", ...)

Value

A numeric vector of pooled predicted values (mean prediction across implicates).

Arguments

object

An object of class 'scf_model_result'.

newdata

A data frame containing variables for which to predict. If missing, predictions are made on the original data (from the first implicate).

type

Character string specifying the type of prediction. Options are "link" (default, linear predictor) or "response" (fitted values on the outcome scale).

...

Additional arguments passed to predict.glm.