Skip to contents

Lasso with cross validation

Usage

lassocv(y, x)

Arguments

y

response

x

the design matrix

Value

betahat: the estimated regression coefficient vector

Examples

data = genevar()
y = data$y
x = data$x
fit = lassocv(y,x)