fit_cvglmnet: Cross-validation for regularized generalized linear models

View source: R/models.R

fit_cvglmnetR Documentation

Cross-validation for regularized generalized linear models

Description

Cross-validation for regularized generalized linear models

Usage

fit_cvglmnet(formula, data, family = gaussian, alpha = 0.5, ...)

Arguments

formula

An object of class formula with a symbolic description of the model to be fitted.

data

A data.frame containing the variables in the model.

family

A description of the error distribution and link function to be used in the model. See stats for mode details.

alpha

The elasticnet mixing parameter. See glmnet for details.

...

Other parameters for the model fitting function.

Value

A list with two data frames: gof contains goodness of fit measures of the fit and coefs contains the fitted coefficients.


quadbiolab/Pando documentation built on April 22, 2024, 8:14 a.m.