-
Notifications
You must be signed in to change notification settings - Fork 1
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
Argument 'center' package tests #20
Comments
Why deprecate |
... to get feedback like this :p So, maybe In the bigger picture and related to HenrikBengtsson/matrixStats#187, this comes down to what the true identity of |
And regarding the special case of |
Use `center` argument correctly in tests
I fixed the tests for MatrixGenerics. They don't use the scalar As far as I can see the best place to continue the discussion around But feel free to reopen, if I missed something. |
With the new 'develop' branch matrixStats version, I know get:
This is related to HenrikBengtsson/matrixStats#183. I've deprecated
length(center) == 1
but for now it's still valid when argumentsrows
andcols
are not specified. I think the above these use does the latter.You could test with
center <- rep(center, times = nrow(x)
to avoid this. However, when you do, you must make sure that you test with a validcenter
estimate because otherwise the new sanity checks related to Issue #160 (switching from "alternative" to "primary" formula for the sample variance estimator).The text was updated successfully, but these errors were encountered: