predict.my_lm_ridge: Predict Method for Ridge Regression Model Fits

Description Usage Arguments Examples

View source: R/predict-my-lm-ridge.R

Description

Predicted values based on linear model object

Usage

1
2
## S3 method for class 'my_lm_ridge'
predict(object, ...)

Arguments

object

object of class inheriting from "my_lm_ridge"

...

further arguments passed to or from other methods

Examples

1
2
3
data(iris)
ridge_fit <- my_lm_ridge(form = Sepal.Length ~ ., data = iris, lambda = 0.5)
predict(ridge_fit, iris)

tqchen07/bis557 documentation built on Dec. 21, 2020, 3:06 a.m.