Base de donnesd
Alina Matei and Yves Tillé University of Neuchâtel
Euskal Estatistika Erakundea XXIII Seminario Internacional de Estadística November 2010
Alina Matei and Yves Tillé
()
The R `sampling' package
November 2010
1 / 13
Introduction and aim
The R language
The R language
Shareware available on http://cran.r-project.org/ The Comprehensive R Archive Network Installation: 10 minutes All the manuels are available in pdf Everyone can write an additional package (600 packages are available) Packages are loaded directly from R. The manual of the package is available online and in pdf. Package `sampling' written by Matei and Tillé.
Alina Matei and Yves Tillé
()
The R `sampling' package
November 2010
2 / 13
Introduction and aim
History of the package
Continuous distributions
EFTA course for public statisticians (April 2005). Objective : to apply directly the theory with the R language. Theory + Exercices with a laptop and R. Writing of a large set of procedures. Finally, decision of submitting the package to the CRAN.
Alina Matei and Yves Tillé
()
The R `sampling' package
November 2010
3 / 13
Content of the package
Topics
Content of the package
Stratication, two-stage, unequal probabilities, balanced sampling Estimation: calibration and regression estimator Tools : computation of inclusion probabilities, crossing strata Data bases, Swiss municipalities, Belgian municipalities.
Alina Matei and Yves Tillé
()
The R `sampling' package
November 2010
4 / 13
Content of the package
Tools
Tools
writesample: return the list of all the samples of xed sample size cleanstrata: renumbering of the strata disjonctive return a matrix wit 0 and 1 that is the disjonctive representation of the stratum. inclusionprobabilities: compute unequal inclusion probabilities from an auxiliary variable variable.
Alina Matei and Yves Tillé
()
The R `sampling'