predict.krr: Predict new krr outcomes.

Description Usage Arguments Value

Description

A function for making predictions based on a krr (kernel ridge regression) model.

Usage

1
2
## S3 method for class 'krr'
predict(krr_mod, xnew, ynew = NA)

Arguments

krr_mod

A model produced by the krr function

xnew

New quantitative explanatory variables to predict (vector, matrix, or data.frame).

ynew

Optional new response variables, helps compute MSE.

Value

Predicted values and MSE.


TimothyKBook/krr documentation built on May 9, 2019, 4:48 p.m.