ridge_fit: This function estimates cross-validated ridge regression...

View source: R/ml_wrapper.R

ridge_fitR Documentation

This function estimates cross-validated ridge regression based on the glmnet package

Description

This function estimates cross-validated ridge regression based on the glmnet package

Usage

ridge_fit(x, y, args = list())

Arguments

x

Matrix of covariates (number of observations times number of covariates matrix)

y

vector of outcomes

args

List of arguments passed to glmnet

Value

An object with S3 class "glmnet"


MCKnaus/causalDML documentation built on Aug. 19, 2023, 5:47 p.m.