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

Code overwrites OM@cpars$AddIerr #79

Open
quang-huynh opened this issue Jul 27, 2023 · 0 comments
Open

Code overwrites OM@cpars$AddIerr #79

quang-huynh opened this issue Jul 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@quang-huynh
Copy link
Member

There appears to be pathological behavior where I specify OM@cpars$AddIerr yet it is overridden when AC is NA (index occurs every other time step)

I believe the issue occurs here: https://github.com/Blue-Matter/MSEtool/blob/master/R/Data_make_update.R#L1668

I can specify OM@cpars$Ierr_y but it seems like a highly inelegant solution and does not work when n.ind > 1 (all indices will have same error structure)

An alternate solution is to sample with AC = 0 when all(is.na(AC)) is TRUE and with SD = OM@Iobs when all(is.na(SD)) is TRUE

@quang-huynh quang-huynh added the bug Something isn't working label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant