estim_pi_ij | R Documentation |
Calculate inclusion probabilities for each unit in a population using simulations.
estim_pi_ij( popdata, sims, n1_vec, SamplingDesign = "ACS", y_variable, f_max = NULL, popvar = NULL )
popdata |
A data frame providing information about the population to be sampled. Required columns include geographic coordinate columns |
sims |
Number of simulations per population. |
n1_vec |
Vector of initial sample size(s) for the initial simple random sample(s) without replacement; can be a single value or vector of values. |
SamplingDesign |
A character string supplying the sampling design to use; accepted options include ACS" (unrestricted adaptive cluster sampling) and "RACS" (restricted ACS). The default is "ACS". |
f_max |
The maximum number of expanding sets of adjacent units surveyed per primary unit in the adaptive phase of ACS. For more information, see Sauby and Christman (in prep). |
popvar |
A character string (OR VECTOR??) used to identify different populations. The default value is NULL. |
yvar |
A string giving the name of the variable of interest, y, in the supplied dataframe popdata. This variable determines the condition under which adaptive cluster sampling takes place. In the dataframe $popdata$ this variable y must be numeric. |
A list of n1_vec and dat, BUT I DONT REMEMBER WHAT THOSE ARE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.