View source: R/14.0.1-strategy-commons.R
| execute_simulation_with_method | R Documentation |
Unified simulation execution function used by all strategies.
Wraps run_fb4_simulation with a common interface for
p_value, ration_percent, and ration_grams methods.
execute_simulation_with_method(
method_type,
method_value,
processed_simulation_data,
oxycal = 13560,
extract_metric = "full",
output_daily = FALSE,
verbose = FALSE
)
method_type |
Method type ("p_value", "ration_percent", "ration_grams") |
method_value |
Method-specific value |
processed_simulation_data |
Complete processed simulation data |
oxycal |
Oxycalorific coefficient, default 13560 |
extract_metric |
What to extract: "weight", "consumption", "full" (default "full") |
output_daily |
Whether to include daily output, default FALSE for fitting |
verbose |
Whether to show progress messages, default FALSE |
Extracted metric (if extract_metric specified) or full simulation result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.