R/study_estimators.R
get_study_est_ss.Rd
Sequential Sampling (SS) prevalence estimator by Gile (2011)
get_study_est_ss(
data,
sampling_var = "hidden",
hidden_var = "target",
n_coupons = 3,
total = 1000,
prefix = "rds",
label = "ss"
)
pass-through population data frame
character string specifying name of the group from which RDS sample was drawn (associated probability of visibility should be named p_visible_[sampling_var]
). Defaults to "hidden" for the simulations
character string specifying names of the hidden group variable name (associated probability of visibility should be named p_visible_[hidden_var]
). Defaults to "target" for the simulations
The number of recruitment coupons distributed to each enrolled subject (i.e. the maximum number of recruitees for any subject). By default it is taken by the attribute or data, else the maximum recorded number of coupons.
integer giving the total size of known population (denominator for prevalence)
character prefix used for RDS sample variables
character string describing the estimator
Data frame of SS prevalence estimates for a single study
Gile, Krista J. 2011 Improved Inference for Respondent-Driven Sampling Data with Application to HIV Prevalence Estimation, Journal of the American Statistical Association, 106, 135-146. Gile, Krista J., Handcock, Mark S., 2010 Respondent-driven Sampling: An Assessment of Current Methodology, Sociological Methodology, 40, 285-327.