-
Notifications
You must be signed in to change notification settings - Fork 6
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
Check dimension conformability of all arguments #230
Comments
Here's the conformability check function from OpenMx
|
Here's how the matrices get checked.
|
In dynr.model, check conformability of the followings:
|
Maybe this is a trivial distinction, but I recommend a slightly different strategy. Instead of checking everything against everything else, use the strategy outlined below.
That is, set some ground truth for
Then check that everything that should match this ground truth does in fact match it. As evidenced by the code I wrote for OpenMx, I like the idea of having the measurement model (e.g. Set ground truths
Dynamics (@meng-chen-2013 @hjhung)
Noise (@yanlingli1 @JPark93)
Initial (@mhunter1 @ares7823)
Regimes (@symiin linying)
|
I put in an additional check for the class of dynamic argument in dynr.model: if(!class(dynamics) %in% c("dynrDynamicsFormula","dynrDynamicsMatrix")){ in case people put in a set of formulae instead. |
@meng-chen-2013 This is a nice idea. I think we should go all the way with it. See #248. |
Original report by Michael Hunter (Bitbucket: mhunter, GitHub: mhunter).
A user created a seg fault by having 1 observed variable but a 4x4 measurement noise covariance.
The text was updated successfully, but these errors were encountered: