sampleone: Survey Sampling Methods for Teaching and Practice

Planning, selection, and estimation for surveys under the main probability sampling designs taught in introductory sampling courses: simple random sampling with and without replacement, stratified sampling (proportional, Neyman, and cost-based allocation), systematic sampling, one- and two-stage cluster sampling, and ratio and regression estimators. Functions accept a superset of the inputs a given formula requires and silently ignore arguments that are not needed for the selected computation. Each function returns a structured object with the point estimate, the associated variance and confidence interval, a step-by-step breakdown of the calculation, and a short pedagogical note suggesting related methods to explore, making the package suitable both for applied survey work and for classroom use. Methods follow Cochran (1977, ISBN:0-471-16240-X) and Bolfarine & Bussab (2005, ISBN:8521203675), among others referenced in each function's documentation.

Package details

AuthorMiguel Luiz de Almeida Pinto [aut, cre], Mariano Martinez Espinosa [aut] (Author of the source course material (course notes) this package implements)
MaintainerMiguel Luiz de Almeida Pinto <phd20x@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://github.com/mdelapi/sampleone 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("sampleone")

Try the sampleone package in your browser

Any scripts or data that you put into this service are public.

sampleone documentation built on Oct. 13, 2026, 5:07 p.m.