Synthetic Purposive Sampling Estimator for the Average-Site ATE
sps_estimator.RdSynthetic Purposive Sampling Estimator for the Average-Site ATE
Usage
sps_estimator(
out = NULL,
estimates_selected = NULL,
subgroup = NULL,
X = NULL,
selected_sites = NULL
)Arguments
- out
Output from function
sps()- estimates_selected
data.frame with two columns: the first column represents estimates of the site-specific ATEs for the selected sites and the second column represents its corresponding standard error. The number of rows is equal to the number of the selected sites and
rownames(estimates_selected)should be names of the selected sites.- subgroup
(Optional. Default =
NULL). A vector that defines subgroups to estimate the subgroup average-site ATE. The length and order ofsubgroupshould be equal to the rows inXused to get outputoutwith functionsps().- X
(Optional. Use this only when sites are not selected based on
sps(). Default =NULL) Site-level variables for the target population of sites. Row names should be names of sites.- selected_sites
(Optional. Use this only when sites are not selected based on
sps(). Default =NULL) Names of sites users selected. This should be a subset of rownames(X).
Value
sps_estimator returns an object of sps_estimator class.
average_site_ATE: An estimate of the average-site ATE and its corresponding standard error.site_specific_ATE: Estimates and standard errors for the site-specific ATEs in non-selected sites.bet_se: Estimated between-site standard errors.
References
Egami and Lee. (2023+). Designing Multi-Context Studies for External Validity: Site Selection via Synthetic Purposive Sampling. Available at https://naokiegami.com/paper/sps.pdf.