predict.yai | R Documentation |
Provides a generic interface for getting predicted values for yai
objects.
## S3 method for class 'yai'
predict(object,newdata,...)
object |
an object of class |
newdata |
a data frame that at a minimum contains the X-variables for new observations. |
... |
passed to |
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.
An object of class impute.yai
.
Nicholas L. Crookston ncrookston.fs@gmail.com
foruse
, newtargets
impute.yai
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.