tags:

views:

104

answers:

1

I'm getting a weird error when training a glmnet regression.

invalid class "dgCMatrix" object: length(Dimnames[[2]])' must match Dim[2]

It only happens occasionally, and perhaps only under larger datasets.

I'm not sure whether it's consistent it happens given a certain dataset.

Any clues?

A: 

Without knowing the particulars of this packages, John Chambers "Software for Data Analsys" (2008, Springer) has a good discussion on debugging, for example via

> options(error=recover)

which may be of help here.

Dirk Eddelbuettel