Horvitz-Thompson prevalence estimator
get_study_est_ht(
data,
hidden_var = "hidden",
weight_var = "pps_weight",
total_var = "total",
survey_design = ~pps_cluster + strata(pps_strata),
n_boot = 100,
parallel_boot = FALSE,
prefix = "pps",
label = "ht"
)
pass-through population data frame
variable containing hidden group membership indicator
variable containing sampling weights
variable containing size of population for prevalence estimation
a formula describing the design of the survey (for bootstrap)
number of bootstrap resamples
logical, whether to compute bootstrap samples in parallel using foreach
package
character prefix used for sampling variables (has to include [prefix]_weights
)
character string describing the estimator
Data frame of HT estimates for a single study
Salganik, Matthew J. "Variance estimation, design effects, and sample size calculations for respondent-driven sampling." Journal of Urban Health 83, no. 1 (2006): 98. https://doi.org/10.1007/s11524-006-9106-x