en_superagers_network: Elastic net superagers by network

View source: R/en_superagers_network.R

en_superagers_networkR Documentation

Elastic net superagers by network

Usage

en_superagers_network(
  dat,
  caret = TRUE,
  lambda = "oneSE",
  lambda_grid = NULL,
  alpha = 0.5,
  pmax = 10
)

Arguments

dat

list of ct_long and sa_long dataframes

caret

use package? FALSE is glmnet. They both use caret but have different arguments.

lambda

oneSE or best?

lambda_grid

Define lambdas in advance; vector

alpha

The elasticnet mixing parameter, with 0≤α≤1. The penalty is defined as RVZeat40Jj6yqpBAMFnuX5afqqE1cxD5-alpha=1 is the lasso penalty, alpha=0 the ridge penalty.

pmax

Limit the maximum number of variables ever to be non-zero

Value

the result of running


n8thangreen/superager.penalised.regn documentation built on March 1, 2023, 12:46 p.m.