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

Fix S allocation bug in rsa and outcome_map #627

Closed
wants to merge 28 commits into from

Conversation

Rosejoycrocker
Copy link
Collaborator

@Rosejoycrocker Rosejoycrocker commented Dec 6, 2023

Closes #615

Previously, S, the number of bins for sensitivity analysis, was set as the max between the input S and number of bins needed for a categorical variable. These changes set the size of storage as the maximum between the input S and the size of the categorical variables, and then S is set as the input S for non-categorical variables during analysis.

Setting this as a draft for discussion as the labels need to be changed to work with visualisations still.

@Rosejoycrocker Rosejoycrocker added the bug Something isn't working label Dec 6, 2023
@Rosejoycrocker
Copy link
Collaborator Author

My thought is that the labels should be set to the input S bin steps, because the categorical variable (guided) labels are set with symbols anyway during plotting. If S is smaller than the storage size though, I'm not sure how the unfilled bins should be labelled... Thoughts, @ConnectedSystems ?

@Rosejoycrocker Rosejoycrocker force-pushed the fix-rsa-slices-bug branch 2 times, most recently from 2e23d88 to b20e427 Compare December 20, 2023 23:35
Rosejoycrocker and others added 26 commits January 5, 2024 10:34
…ity locations functions

`strong_pred` and `zones` must be the same size
Zones criteria was incorrectly indexing using `strong_pred` - should have been using sites in `strong_pred` which contain priority zone sites, not values of `strong_pred` at sites in priority zones
`strong_pred` should be a matrix, with site ids in the first column. Without this, calcs in priority predecessor and zones criteria are incorrect
Simplify and fix how `strong_pred` is used in zoning criteria

Add to docs
Remove unnecessary findall

Remove unnecessary findall
Implements get_bounds and get_default_bounds to better handle real versus virtual upper bound.
Move `_check_discrete()` and `map_to_discrete()` methods into `sampling.jl` to maintain conceptual consistency.
… storage size, but then S i readjusted according to the factor type
Formatting
@Rosejoycrocker
Copy link
Collaborator Author

Closing this as has been superceded by #679

@Zapiano Zapiano deleted the fix-rsa-slices-bug branch June 13, 2024 04:56
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

Successfully merging this pull request may close these issues.

Fix "surprising" readjustment of the number of slices used to perform RSA/outcome mapping
3 participants