Learn R Programming

yaImpute (version 1.0-32)

predict.yai: Generic predict function for class yai

Description

Provides a generic interface for getting predicted values for yai objects.

Usage

# S3 method for yai
predict(object,newdata,...)

Value

An object of class impute.yai.

Arguments

object

an object of class yai which is passed as argument to newtargets, impute.yai, or both of these functions, see details.

newdata

a data frame that at a minimum contains the X-variables for new observations.

...

passed to newtargets and impute.yai, see details.

Author

Nicholas L. Crookston ncrookston.fs@gmail.com

Details

When argument newdata is present function newtargets is called followed by a call to impute.yai. If include in the ..., the arguments k and ann are passed to newtargets.

When argument newdata is absent, impute.yai is called without first calling newtargets.

All of the ... arguments are passed to impute.yai.

Another form of prediction in imputation is to get the identity of the imputed observations. Use function foruse for this purpose.

See Also

foruse, newtargets impute.yai