
Generate transfer matrix simulations
draw_mt.RdGenerates simulated transfer matrices using MCMC or bootstrapping
Arguments
- data
Data frame with transfer matrix. When using bootstrapping, sample data should be provided where each row represents an individual. If uncertainty_method = 'mcmc', an aggregated transfer matrix should be provided.
- district_col
Column name for district identifier (used in bottom-up strategy)
- uncertainty_method
Uncertainty method: "mcmc" or "bootstrap"
- strategy
Strategy for transfer matrix: "top_down" or "bottom_up"
- nsims
Number of simulations to generate
- calib_vars
Variables for calibration (vector of column names, optional)
- weights
Name of column with reference weights for calibration (optional)
- seed
Seed for reproducibility (optional)
- verbose
Show progress messages (default TRUE)
See also
Other data-functions:
load_and_validate(),
validate_input_data()