Skip to contents

Core methods

Design effect and constrained objective/gradient

calculate_deff()
Calculate the Expected Design Effect
calculate_deff_gradient()
Calculate the Gradient of the Expected Design Effect
objective_deff_constrained()
Objective Function for Constrained Optimisation
gradient_deff_constrained()
Gradient for Constrained Optimisation

Cross-entropy objective

KL-based objective and gradient

calculate_entropy()
Cross-Entropy (KL) Objective: Expected respondent distribution vs population
calculate_entropy_gradient()
Gradient of Cross-Entropy Objective
objective_entropy_constrained()
Constrained Cross-Entropy Objective (with budget penalty)
gradient_entropy_constrained()
Gradient of Constrained Cross-Entropy Objective

Simulation

setup_pop_frame()
Setup Population Frame
run_alsd_simulation()
Run an ALSD Simulation
rdd_like()
Lightweight RDD/quota approximation
modmat()
Model matrix with all levels option

Data

zimbabwe_minisample
Simulated Zimbabwe Survey Microdata
mics_toy
Synthetic MICS-like microdata (toy)