You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really excited about the package. Thanks for all your hard work on it.
I'm getting a pesky subscript out of bounds error when I run the program. I don't think I'm making an error but I could be wrong. Can you advise whether this is a bug on my end or yours?
The error is coming up because you have a lot of columns that are constants (i.e., all 0 or all 1). If you drop them, grpreg works fine:
constant<- apply(X, 2, sd) <1e-10X<-X[,!constant]
g<-groups.factor[!constant]
grpreg.fit<- cv.grpreg(X, Y, group=g)
Now, grpreg is supposed to handle this automatically, so the user doesn't have to manually remove the constant columns first, but this apparently isn't covering all possible cases. I've taken a look and unfortunately it's not a simple fix, so I'll need to keep working on it. In the meantime, you can work around it by dropping the constant columns yourself as in the above code.
Thank you very much for pointing this out and filing an issue -- some design matrix issues are hard to anticipate.
Hi there,
I'm really excited about the package. Thanks for all your hard work on it.
I'm getting a pesky subscript out of bounds error when I run the program. I don't think I'm making an error but I could be wrong. Can you advise whether this is a bug on my end or yours?
The text was updated successfully, but these errors were encountered: