predict_ridge: Prediction function for class my_ridge

Description Usage Arguments Examples

Description

This function predicts a value of Y based on my_ridge

Usage

1
predict_ridge(object, ...)

Arguments

object

the my_ridge object

...

the data frame used to fit the object

Examples

1
2
3
4
5
6
data("iris")
irisdf <- as.data.frame(iris)
irissamdf <- irisdf[sample(nrow(irisdf), 0.2*nrow(irisdf)), ]
irisform <- Sepal.Length ~.
obj <- my_ridge(irisform, irissamdf, 0.02)
predict_ridge(obj, irisdf)

kimgannon/bis557 documentation built on Nov. 25, 2020, 7:09 a.m.