| predict.yai {yaImpute} | R Documentation |
Generic predict function for class yai
Description
Provides a generic interface for getting predicted values for yai objects.
Usage
## S3 method for class 'yai'
predict(object,newdata,...)
Arguments
object |
an object of class |
newdata |
a data frame that at a minimum contains the X-variables for new observations. |
... |
passed to |
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.
Value
An object of class impute.yai.
Author(s)
Nicholas L. Crookston ncrookston.fs@gmail.com