BestWeightsByLambda: Find best weights

Description Usage Arguments

Description

Chooses best weights out of all weights generated for each lambda of regularized regression. Then, compute glm coefficients on full dataset using the best lambda

Usage

1
BestWeightsByLambda(performance, lambdas, alpha = 0, glmData, nBack)

Arguments

performance

all results from regularized regression after running RegularizedRegression

lambdas

list of lambda parameters that was used to run RegularizedRegression

glmData

trial-by-trial subject responses

nBack

number of trials to go back in history. Default is 1.


armanabraham/chb documentation built on May 10, 2019, 1:39 p.m.