predict.yai: Generic predict function for class yai

View source: R/predict.yai.R

predict.yaiR 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 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.

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

See Also

foruse, newtargets impute.yai


yaImpute documentation built on Nov. 4, 2022, 1:06 a.m.