Skip to content
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

ENH: Add hypothesis tests for CCA #214

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kshedden
Copy link

These are some of the classical hypothesis tests for CCA. The results are identical against Stata.

src/cca.jl Outdated
@@ -336,3 +340,98 @@ function fit(::Type{CCA}, X::AbstractMatrix{T}, Y::AbstractMatrix{T};

return M::CCA
end

struct CCATest <: HypothesisTest
# All below are vectors of length 3, containing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels to me like a case where it would make more sense to have separate, individually assessable HypothesisTest types, even if they're structurally the same. (I did something similar ~6 years ago in the now-obsolete MultivariateTests package). You could then have a function that computes/reports them together if that's a common thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants