Learn R Programming

Cyclops (version 3.5.0)

convertToCyclopsVariance: Convert to Cyclops Prior Variance

Description

convertToCyclopsVariance converts the regularization parameter lambda from glmnet into a prior variance.

Usage

convertToCyclopsVariance(lambda, nobs)

Value

Prior variance under a Laplace() prior

Arguments

lambda

Regularization parameter from glmnet

nobs

Number of observation rows in dataset