ppBS_ups: Pseudo-population bootstrap for simple random sampling

View source: R/pseudo_population.R

ppBS_upsR Documentation

Pseudo-population bootstrap for simple random sampling

Description

Pseudo-population bootstrap for simple random sampling

Usage

ppBS_ups(y, pik, B, D = 1, method, smplFUN, x = NULL, s = NULL)

Arguments

y

vector of sample values

pik

vector of sample first-order inclusion probabilities

B

scalar, number of bootstrap replications

D

scalar, number of replications for the double bootstrap

method

a string indicating the bootstrap method to be used, available methods are: 'Gross', 'Booth', 'ChaoLo85', 'ChaoLo94', 'BickelFreedman', 'Sitter'

smplFUN

a function that takes as input a vector of length N of inclusion probabilities and return a vector of length N, either logical or a vector of 0s and 1s, where TRUE or 1 indicate sampled units and FALSE or 0 indicate non-sample units.

x

vector of length N with values of the auxiliary variable for all population units, only required if method "HotDeck" is chosen

s

logical vector of length N, TRUE for units in the sample, FALSE otherwise. Alternatively, a vector of length n with the indices of the sample units. Only required for "HotDeck" method.

References

Mashreghi Z.; Haziza D.; Léger C., 2016. A survey of bootstrap methods in finite population sampling. Statistics Surveys 10 1-52.


bootstrapFP documentation built on Sept. 3, 2023, 1:08 a.m.