predict.cv.rss: Predict function for cv.rss object

predict.cv.rssR Documentation

Predict function for cv.rss object

Description

Generate predictions given new data using a given parameter pair (k,h).

Usage

## S3 method for class 'cv.rss'
predict(object, x.new, k = "k.min", h = "h.min", ...)

Arguments

object

an object of class cv.rss

x.new

a matrix of new values for the predictors

k

the number of predictors indexing the desired fit; 'k.min' uses best k from cross-validation

h

the number of observations indexing the desired fit; 'h.min' uses best h from cross-validation

...

any other arguments

Value

An array of predictions.

Author(s)

Ryan Thompson


ryan-thompson/robustsubsets documentation built on Dec. 14, 2024, 6:25 a.m.