-
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
Z1 <= Z2 ? #2
Comments
This doesn't happen for the simulations but does on real data experiments (probably due to the trick to estimate DoH and then minor and major CNs). |
Would you mind commenting on what you did to address this issue, and link to a specific commit? |
Modification of get.Z.
minor CN > major CN cannot happen if estimates are correctly done. |
If it cannot happen, then you should add a sanity check that it doesn't, using e.g. It would also be nice to have a test about this, but I'm not sure how to do that. |
Add a warning when Z1 is larger than Z2. |
In most of cases Z1 is larger than Z2 when the optimal number of archetype is reached.
|
In https://github.com/pneuvial/incas-cn/blob/master/R/getZ.R#L17-L23 we are taking care of the situation where minor CN > major CN in the latent profiles. Does this happen? Hopefully not. If not, then we should rather throw an error than silently swapping minor and major CNs.
The text was updated successfully, but these errors were encountered: