Extract glmnet effects

# S3 method for class 'glmnet.effects'
extract(betas, best.index, x.recoded, x.original)

Arguments

betas

glmnet$beta

best.index

index k

x.recoded

the recoded version of x

x.original

the original x Assuming that the first row is the x.interest