You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever a new parameter is selected from the drop-down list, the PSA simulations are conducted twice (the plot refreshes twice).
The final plot shows the correct parameter values, while the intermediate plot shows the previous parameter's values (e.g. if previous parameter was CL and its associated values was 1, 2, 3, and the new parameter is V, the intermediate plot first shows 1, 2, 3, before updating to the final values of 10, 20, 30).
The text was updated successfully, but these errors were encountered:
stevechoy
changed the title
Duplicate simulations are Parameter Sensitivity Analysis (PSA) plots
Extra simulations for Parameter Sensitivity Analysis (PSA) plots
Oct 15, 2024
This behavior is now corrected by introducing a reactive dependency for new_sim_min_model_1, new_sim_mid_model_1, new_sim_max_model_1 to input$param_min_id_model_1, input$param_mid_id_model_1, and input$param_max_id_model_1, respectively, i.e. adding %>% bindEvent(input$param_min_id_model_1) at the end of the reactive. (ditto for model 2)
Turns out it is not enough to just introduce a single reactive dependency as other arguments such as sampling_options() would not be updated when changed. A deeper look into the reactive dependency is required to fix this.
Whenever a new parameter is selected from the drop-down list, the PSA simulations are conducted twice (the plot refreshes twice).
The final plot shows the correct parameter values, while the intermediate plot shows the previous parameter's values (e.g. if previous parameter was CL and its associated values was 1, 2, 3, and the new parameter is V, the intermediate plot first shows 1, 2, 3, before updating to the final values of 10, 20, 30).
The text was updated successfully, but these errors were encountered: