Top "Glmnet" questions

glmnet is an R package for Lasso and elastic-net regularized generalized linear models.

R glmnet : "(list) object cannot be coerced to type 'double' "

I'm trying to use the glmnet package on a dataset. I'm using cv.glmnet() to get a lambda value for …

r glmnet
Extracting coefficient variable names from glmnet into a data.frame

I would like to extract the glmnet generated model coefficients and create a SQL query from them. The function coef(…

r glmnet
R error in glmnet: NA/NaN/Inf in foreign function call

I am trying to create a model using glmnet, (currently using cv to find the lambda value) and I am …

r sparse-matrix na glmnet
Lasso error in glmnet NA/NaN/Inf

I'm having an issue with glmnet in that I keep getting the error message "Error in elnet(x, is.sparse, …

r glmnet lasso-regression
Getting glmnet coefficients at 'best' lambda

I am using following code with glmnet: > library(glmnet) > fit = glmnet(as.matrix(mtcars[-1]), mtcars[,1]) > plot(…

r regression glmnet coefficients
R glmnet as.matrix() error message

I'm trying to use the glmnet package on a dataset. I'm using cv.glmnet() to get a lambda value for …

r glmnet
Difference between glmnet() and cv.glmnet() in R?

I'm working on a project that would show the potential influence a group of events have on an outcome. I'm …

r classification glm cross-validation glmnet
Predict function error for probabilities in glmnet?

I am trying to predict probabilities in a dataset using glmnet. My code reads: bank <- read.table("http://…

r probability prediction glmnet
Error in model.frame.default(object, data, xlev = xlev) : object is not a matrix

3 days old to R and can't figure out what I'm doing wrong. I'm trying to send some columns with two …

r glmnet model.matrix
How to solve 'protection stack overflow' issue in R Studio

I'm trying to build a model with the glmnet package, but I'm getting the following error when I run the …

r stack-overflow glmnet