Description Usage Arguments Value Author(s) Examples
View source: R/create_sample_psm.R
Select sampling units from a set of potential sampling units using propensity score matching (PSM)
1 2 3 4 5 6 7 8 | create_sample_psm(
x,
svy,
psu = "psu",
match = NULL,
pop = "pop",
sampling_type = c("simple", "systematic")
)
|
x |
A data.frame of all potential primary sampling units (PSUs) to sample from each uniquely identified and with corresponding populations. |
svy |
A data.frame of survey data drawn via probability proportional to population size (PPS) approach from all the potential PSUs in x. |
psu |
A single character value or vector of values corresponding to the variable name/s for the primary sampling unit in x and svy. Default is "psu". |
match |
A single character value corresponding to the variable name for the primary sampling unit in x that matches the primary sampling unit in svy. Default is NULL which indicates that primary sampling unit in x is the same as primary sampling unit in svy. |
pop |
A single character value corresponding to the variable name for the population figures in x. Default is "pop". |
sampling_type |
Which sampling type to use. Choice between simple random sample (simple) or systematic sample (systematic). Default is simple. |
A data.frame drawn from svy that contains the primary sampling units selected by propensity score matching.
Mark Myatt and Ernest Guevarra
1 2 3 4 5 6 7 | create_sample_psm(
x = village_list,
svy = sample_data,
psu = c("id", "psu"),
match = "cluster",
pop = "population"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.