-
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
Off-diagonal values may no longer be nonzero if the diagonal is zero for a covariance matrix #20
Conversation
…for a covariance matrix
I'm uncomfortable with the breaking change as it is written (while I agree with the need). |
Should I add an argument like |
Yes, that would be the theory. I used Also this needs to be tested in nested/occasion cases |
I also saw some edge cases that are not handled correctly by adding this flag... |
It could be why the environment grows in certain circumstances... |
I have mostly finished. I will upload when I get computer internet access again. The only oustanding piece for me is why is this an error instead of a warning that corrects the matrix? The reason I ask is since this is now only applied for covariance matrices, lotri should also check for positive definite matrices (which the code will). Since getting a positive definite matrix is not always intuitive, the code can optionally find the nearest positive definite matrix by providing some sort of correction funtion. This would make the zero correction strategy proposed here inconsistent with the non positive definite correction. I may be missing why this should be an error instead of a correction and warning. |
I would think that typos would be the most common reason it would have a nonzero covariance with a zero variance. In that case, I would rather see an error than have an auto correction that may not be the correction I wanted. |
Let me know if this looks good to you now. |
Looks good to me. Thanks! |
Fix nlmixr2/rxode2#481