Learn R Programming

sampling (version 2.10)

Survey Sampling

Description

Functions to draw random samples using different sampling schemes are available. Functions are also provided to obtain (generalized) calibration weights, different estimators, as well some variance estimators.

Copy Link

Version

Install

install.packages('sampling')

Monthly Downloads

9,512

Version

2.10

License

GPL (>= 2)

Maintainer

Last Published

October 29th, 2023

Functions in sampling (2.10)

UPopips

Order pips sampling
UPsystematicpi2

Joint inclusion probabilities for systematic sampling
checkcalibration

Check calibration
balancedcluster

Balanced cluster
UPtillepi2

Joint inclusion probabilties for Tille sampling
UPtille

Tille sampling
balancedstratification

Balanced stratification
cleanstrata

Clean strata
gencalib

g-weights of the generalized calibration estimator
cluster

Cluster sampling
fastflightcube

Fast flight phase for the cube method
inclusionprobabilities

Inclusion probabilities
calib

g-weights of the calibration estimator
belgianmunicipalities

The Belgian municipalities population
postest

Poststratified estimator
balancedtwostage

Balanced two-stage sampling
landingcube

Landing phase for the cube method
disjunctive

Disjunctive combination
inclusionprobastrata

Inclusion probabilities for a stratified design
calibev

Calibration estimator and its variance estimation
mstage

Multistage sampling
rhg

Response homogeneity groups
vartaylor_ratio

Taylor-series linearization variance estimation of a ratio
regest_strata

Regression estimator for a stratified design
ratioest_strata

Ratio estimator for a stratified design
regest

Regression estimator
getdata

Get data
rhg_strata

Response homogeneity groups for a stratified sampling
rec99

The 1999 census data
strata

Stratified sampling
sampling-internal

Internal sampling Functions
swissmunicipalities

The Swiss municipalities population
samplecube

Sample cube method
srswr

Simple random sampling with replacement
srswor1

Selection-rejection method
rmodel

Response probability using logistic regression
writesample

All possible samples of fixed size
poststrata

Postratification
ratioest

Ratio estimator
varest

Variance estimation using the Deville's method
varHT

Variance estimators of the Horvitz-Thompson estimator
srswor

Simple random sampling without replacement
MU284

The MU284 population
HTestimator

The Horvitz-Thompson estimator
UPpivotal

Pivotal sampling
UPmultinomial

Multinomial sampling
HTstrata

The Horvitz-Thompson estimator for a stratified design
UPmidzuno

Midzuno sampling
UPmaxentropy

Maximum entropy sampling
Hajekstrata

The Hajek estimator for a stratified design
UPminimalsupport

Minimal support sampling
UPpoisson

Poisson sampling
UPsystematic

Systematic sampling
UPrandompivotal

Random pivotal sampling
UPbrewer

Brewer sampling
UPmidzunopi2

Joint inclusion probabilities for Midzuno sampling
UPrandomsystematic

Random systematic sampling
UPsampfordpi2

Joint inclusion probabilities for Sampford sampling
Hajekestimator

The Hajek estimator
UPsampford

Sampford sampling