get_sampling_clusters: Select sampling units from a set of potential sampling units...

Description Usage Arguments Value Author(s) Examples

View source: R/create_sample_psm.R

Description

Select sampling units from a set of potential sampling units using propensity score matching (PSM)

Usage

1
2
3
4
5
6
get_sampling_clusters(
  x,
  psu = NULL,
  pop = NULL,
  sampling_type = c("simple", "systematic")
)

Arguments

x

A data.frame of all potential primary sampling units (PSUs) to sample from each uniquely identified and with corresponding populations.

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".

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.

Value

A data.frame drawn from x that contains the primary sampling units selected by propensity score matching.

Author(s)

Mark Myatt and Ernest Guevarra

Examples

1
2
3
4
5
get_sampling_clusters(
  x = village_list,
  psu = "cluster",
  pop = "population"
)

ernestguevarra/surveysampler documentation built on Jan. 2, 2022, 4:25 a.m.