Skip to contents

Sample size estimation

get_binom_hypergeom()
Calculate the binomial coefficient "n-choose-k"
get_hypergeom()
Calculate hypergeometric probability
get_hypergeom_cumulative()
Calculate cumulative hypergeometric probabilities
get_n()
Calculate sample size of number of cases to be found to assess coverage
get_d()
Calculate decision rule for a specified sample size and lower and upper triage thresholds
get_n_cases()
Calculate estimated number of cases for a condition affecting children under 5 years old in a specified survey area
get_n_clusters()
Calculate number of clusters to sample to reach target sample size

Stage 1 sampling

Coverage classifier

classify_coverage()
Classify coverage results

Tests for SLEAC classifier performance

make_data()
Function to simulate survey data of covered/cases and non-covered/non-cases given specified parameters
run_lqas()
Function to perform LQAS based on data based on specified decision rules
simulate_lqas()
Function to perform a series of LQAS analysis on simulated coverage survey data
test_lqas_classifier()
Function to test performance of LQAS classifier
get_class_prob()
Function to produce misclassification probabilities
print(<lqasClass>)
print helper function for get_class_prob() function
plot(<lqasSim>)
plot helper function for test_lqas_classifier() function

Datasets

village_list
List of villages in Bo District, Sierra Leone
survey_data
SLEAC survey data from Sierra Leone