Package: TeachingSampling 4.2.0

TeachingSampling: Selection of Samples and Parameter Estimation in Finite Population

Allows the user to draw probabilistic samples and make inferences from a finite population based on several sampling designs, including simple random, systematic, Bernoulli, Poisson, PPS, stratified, and cluster sampling. Provides Horvitz-Thompson, Hansen-Hurwitz, and generalised regression (GREG) estimators of totals, means, ratios, regression coefficients, and quantiles, along with exact and approximate variance estimators.

Authors:Hugo Andres Gutierrez Rojas [aut, cre], Yury Vanessa Ochoa Montes [ctb]

TeachingSampling_4.2.0.tar.gz
TeachingSampling_4.2.0.zip(r-4.7)TeachingSampling_4.2.0.zip(r-4.6)TeachingSampling_4.2.0.zip(r-4.5)
TeachingSampling_4.2.0.tgz(r-4.6-any)TeachingSampling_4.2.0.tgz(r-4.5-any)
TeachingSampling_4.2.0.tar.gz(r-4.7-any)TeachingSampling_4.2.0.tar.gz(r-4.6-any)
TeachingSampling_4.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
TeachingSampling/json (API)

# Install 'TeachingSampling' in R:
install.packages('TeachingSampling', repos = c('https://psirusteam.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/psirusteam/teachingsampling/issues

Datasets:
  • BigCity - Full Person-level Population Database
  • BigLucy - Full Business Population Database
  • Lucy - Full Business Population Database

On CRAN:

Conda:

5.92 score 5 stars 4 packages 202 scripts 1.4k downloads 51 exports 15 dependencies

Last updated from:93d41a140e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK134
source / vignettesOK172
linux-release-x86_64OK139
macos-release-arm64OK85
macos-oldrel-arm64OK99
windows-develOK87
windows-releaseOK85
windows-oldrelOK93
wasm-releaseOK115

Exports:DeltaklDomainsE.1SIE.2SIE.BEE.BetaE.piPSE.POE.PPSE.QuantileE.SIE.STpiPSE.STPPSE.STSIE.SYE.TrimE.UCE.WRGREG.SIHHHTIkIkRSIkWRIPFPkish_allocationnkOrderWRp.WRPikPikHolPiklPikPPSPikSTPPSS.BES.piPSS.POS.PPSS.SIS.STpiPSS.STPPSS.STSIS.SYS.WRSupportSupportRSSupportWRT.SICVarHTVarSYGHTWk

Dependencies:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Full Person-level Population DatabaseBigCity
Full Business Population Database (Extended)BigLucy
Variance-Covariance Matrix of the Sample Membership Indicators for Fixed Size Without Replacement Sampling DesignsDeltakl
Domain Indicator MatrixDomains
Estimation of the Population Total under Single Stage Simple Random Sampling Without ReplacementE.1SI
Estimation of the Population Total under Two Stage Simple Random Sampling Without ReplacementE.2SI
Estimation of the Population Total under Bernoulli Sampling Without ReplacementE.BE
Estimation of Regression Coefficients under Simple Random Sampling Without ReplacementE.Beta
Estimation of the Population Total under Probability-Proportional-to-Size Sampling Without ReplacementE.piPS
Estimation of the Population Total under Poisson Sampling Without ReplacementE.PO
Estimation of the Population Total under Probability-Proportional-to-Size Sampling With ReplacementE.PPS
Estimation of a Population QuantileE.Quantile
Estimation of the Population Total under Simple Random Sampling Without ReplacementE.SI
Estimation of the Population Total under Stratified Probability Proportional to Size Sampling Without ReplacementE.STpiPS
Estimation of the Population Total under Stratified Probability Proportional to Size Sampling With ReplacementE.STPPS
Estimation of the Population Total under Stratified Simple Random Sampling Without ReplacementE.STSI
Estimation of the Population Total under Systematic Sampling Without ReplacementE.SY
Weight Trimming and RedistributionE.Trim
Estimation of the Population Total and its variance using the Ultimate Cluster techniqueE.UC
Estimation of the Population Total under Simple Random Sampling With ReplacementE.WR
Generalised Regression Estimator under Simple Random SamplingGREG.SI
Hansen-Hurwitz Estimator of the Population TotalHH
Horvitz-Thompson Estimator of the Population TotalHT
Sample Membership Indicator MatrixIk
Sample Membership Indicator Matrix for All Possible Sample SizesIkRS
Sample Membership Indicator for with Replacements sampling designsIkWR
Iterative Proportional Fitting Procedure (Raking)IPFP
Kish Allocation for Stratified Samplingkish_allocation
Full Business Population DatabaseLucy
Sample Selection Indicator for With Replacement Sampling Designsnk
Ordered With-Replacement Sampling SupportOrderWR
Sample Probabilities under With-Replacement Samplingp.WR
First-Order Inclusion Probabilities from a Sampling DesignPik
Optimal Inclusion Probabilities for Multiple Surveys (Holmberg)PikHol
Second-Order Inclusion ProbabilitiesPikl
Inclusion Probabilities Proportional to SizePikPPS
Inclusion Probabilities in Stratified Proportional to Size Sampling DesignsPikSTPPS
Bernoulli SamplingS.BE
Probability Proportional to Size Without-Replacement Sampling (piPS)S.piPS
Poisson SamplingS.PO
Probability Proportional to Size With-Replacement SamplingS.PPS
Simple Random Sampling Without ReplacementS.SI
Stratified Probability Proportional to Size Without-Replacement SamplingS.STpiPS
Stratified Probability Proportional to Size With-Replacement SamplingS.STPPS
Stratified Simple Random Sampling Without ReplacementS.STSI
Systematic SamplingS.SY
Simple Random Sampling With ReplacementS.WR
Sampling Support for Fixed-Size Without-Replacement DesignsSupport
Complete Sampling Support for All Sample SizesSupportRS
Sampling Support for With-Replacement DesignsSupportWR
Cluster Totals for Single-Stage Cluster SamplingT.SIC
Exact Variance of the Horvitz-Thompson EstimatorVarHT
Two different varaince estimators for the Horvitz-Thompson estimatorVarSYGHT
GREG Generalised WeightsWk