predict.bayz: Obtain / retrieve predictictions from a bayz model for NA...

View source: R/predict.R

predict.bayzR Documentation

Obtain / retrieve predictictions from a bayz model for NA response values in the original data input

Description

Prediction in bayz currently only supports prediction of the NA responses that were in the original data frame. Predict is simply a wrapper to retrieve them from the output. To predict data points that were not in the original data frame for analysis, the training model needs to be re-run with these data points added in the training data.

Usage

## S3 method for class 'bayz'
predict(object, id = NULL, ...)

Arguments

object

An output object of a bayz model run of class 'bayz'.

id

An optional ID that can be attached to the predicted values for reference. This should be a vector with length and order matching the original input data frame - typically it is a column of the original data frame such as id=mydata$myID. Omit for not attaching any reference ID.

...

Additional parameters passed onto the Model function.

Value

fitted


MarniTausen/BayzR documentation built on April 4, 2024, 9:30 a.m.