Learn R Programming

⚠️There's a newer version (2.10) of this package.Take me there.

sampling (version 2.9)

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

10,469

Version

2.9

License

GPL (>= 2)

Maintainer

Last Published

January 13th, 2021

Functions in sampling (2.9)

MU284

The MU284 population
UPmaxentropy

Maximum entropy sampling with fixed sample size and unequal probabilities
UPminimalsupport

Minimal support sampling
UPbrewer

Brewer sampling
HTstrata

The Horvitz-Thompson estimator for a stratified design
HTestimator

The Horvitz-Thompson estimator
UPmidzunopi2

Joint inclusion probabilities for Midzuno sampling
Hajekstrata

The Hajek estimator for a stratified design
UPrandompivotal

Random pivotal sampling
Hajekestimator

The Hajek estimator
UPmidzuno

Midzuno sampling
UPsystematic

Systematic sampling
UPrandomsystematic

Random systematic sampling
balancedstratification

Balanced stratification
balancedcluster

Balanced cluster
checkcalibration

Check calibration
cleanstrata

Clean strata
UPsampford

Sampford sampling
inclusionprobastrata

Inclusion probabilities for a stratified design
calib

g-weights of the calibration estimator
landingcube

Landing phase for the cube method
UPsampfordpi2

Joint inclusion probabilities for Sampford sampling
getdata

Get data
UPsystematicpi2

Joint inclusion probabilities for systematic sampling
regest

The regression estimator
UPpivotal

Pivotal sampling
srswr

Simple random sampling with replacement
regest_strata

The regression estimator for a stratified design
strata

Stratified sampling
postest

The poststratified estimator
rhg

Response homogeneity groups
UPtille

Tille sampling
mstage

Multistage sampling
inclusionprobabilities

Inclusion probabilities
UPtillepi2

Joint inclusion probabilties for Tille sampling
UPpoisson

Poisson sampling
rhg_strata

Response homogeneity groups for a stratified sampling
UPmultinomial

Multinomial sampling
poststrata

Postratification
ratioest_strata

The ratio estimator for a stratified design
cluster

Cluster sampling
calibev

Calibration estimator and its variance estimation
belgianmunicipalities

The Belgian municipalities population
disjunctive

Disjunctive combination
UPopips

Order pips sampling
balancedtwostage

Balanced two-stage sampling
fastflightcube

Fast flight phase for the cube method
gencalib

g-weights of the generalized calibration estimator
varest

Variance estimation using the Deville's method
rmodel

Response probability using logistic regression
swissmunicipalities

The Swiss municipalities population
rec99

The 1999 census data
varHT

Variance estimators of the Horvitz-Thompson estimator
samplecube

Sample cube method
vartaylor_ratio

Taylor-series linearization variance estimation of a ratio
writesample

All possible samples of fixed size
ratioest

The ratio estimator
srswor

Simple random sampling without replacement
srswor1

Selection-rejection method