-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow an ndarray as Center in rvals #532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks really good. Please can you make it a die
or confess
if too many elements are supplied? I'm keen to not allow errors to pass through and cause problems later.
Done. Would it be better to 'use Carp' and 'croak' instead of 'die'? |
I've just taken a look, and because there's a |
12b7e4b
to
c589c80
Compare
I added a check on the dimensions of the center (it should be 1D) and changed warn to die to barf. I used topdl to unify the cases of a reference or of an ndarray and then converted to a perl array in order not to change the rest of the code. |
Looks really good! One more nitpick: |
By the way, you wouldn't happen to know about doing ANOVA with generalised linear modelling (GLM)? I've got one case that doesn't work in https://rt.cpan.org/Ticket/Display.html?id=97925, having fixed the other? The problem I'm having is the remaining case gives a singular matrix when effect-coded up, and I'm grinding through the textbook to see if there are known techniques to avoid such singularity. If not, no problem! |
Done. |
Sorry. I'm ignorant about ANOVA. Just read a little bit and seems interesting. A wild guess is that SVD (singular value decomposition) might be useful : it allows solving, in a sense, some singular problems. Regards, Luis |
No description provided.