survey: Analysis of Complex Survey Samples

Summary statistics, two-sample tests, rank tests, generalised linear models, cumulative link models, Cox models, loglinear models, and general maximum pseudolikelihood estimation for multistage stratified, cluster-sampled, unequally weighted survey samples. Variances by Taylor series linearisation or replicate weights. Post-stratification, calibration, and raking. Two-phase subsampling designs. Graphics. PPS sampling without replacement. Small-area estimation.

Version: 4.4-2
Depends: R (≥ 4.1.0), grid, methods, Matrix, survival
Imports: stats, graphics, splines, lattice, minqa, numDeriv, mitools (≥ 2.4), Rcpp (≥ 0.12.8)
LinkingTo: Rcpp, RcppArmadillo
Suggests: foreign, MASS, KernSmooth, hexbin, RSQLite, quantreg, parallel, CompQuadForm, DBI, AER, SUMMER (≥ 1.4.0), R.rsp
Published: 2024-03-20
DOI: 10.32614/CRAN.package.survey
Author: Thomas Lumley, Peter Gao, Ben Schneider
Maintainer: "Thomas Lumley" <t.lumley at>
License: GPL-2 | GPL-3
NeedsCompilation: yes
Citation: survey citation info
Materials: NEWS
In views: OfficialStatistics, Survival
CRAN checks: survey results


Reference manual: survey.pdf
Vignettes: Small area estimation
Estimates in subpopulations
Two-phase designs in epidemiology
Analysing PPS designs
Pre-calibrated weights
Quantile rules
A survey analysis example


Package source: survey_4.4-2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): survey_4.4-2.tgz, r-oldrel (arm64): survey_4.4-2.tgz, r-release (x86_64): survey_4.4-2.tgz, r-oldrel (x86_64): survey_4.4-2.tgz
Old sources: survey archive

Reverse dependencies:

Reverse depends: CalibrateSSB, cjoint, csurvey, eatRep, ggsurvey, hopit, mapStats, nonprobsvy, pedgene, relaimpo, sae2, samplingbook, spsurvey, StatMatch, svydiags, svylme, svyVGAM
Reverse imports: anthro, apc, APCI, calidad, capm, causaldrf, CMMs, convey, COVIDIBGE, cregg, dearseq, DHS.rates, dvmisc, ech, effects, EpiForsk, ergm.ego, FamAgg, GB2, GJRM, glm.predict, GreedyExperimentalDesign, healthequal, httk, ICS, ICtest, idcnrba, iNZightPlots, iNZightTools, IRexamples, jointCalib, jskm, jsmodule, jstable, lboxcox, LLM, mase, MatchThem, MCM, microsynth, mixcure, MixedIndTests, mpitbR, nrba, OmnibusFisher, OVtool, PNADcIBGE, PNDSIBGE, PNSIBGE, poliscidata, povmap, pricesensitivitymeter, RCPA3, RNHANES, robsurvey, SAIGEgds, SAMBA, sampcompR, SBdecomp, SightabilityModel, srvyr, ssfit, StroupGLMM, SUMMER, SurveyCC, surveyCV, surveyPrev, surveytable, svrep, SvyNom, svyweight, tab, tableone, twang, twangContinuous, twangMediation
Reverse suggests: anthroplus, apyramid, BIFIEsurvey, broom, broom.helpers, car, cardx, clarify, cpsvote, EffectLiteR, egor, finalfit, GENESIS, ggeffects, ggstats, grattan, gtsummary, hbsae, hutils, inca, inctools, insight, interactions, iNZightRegression, ipw, jtools, kyotil, logmult, marginaleffects, mcmcsae, modelsummary, modi, nhanesA, optimall, optmatch, parameters, performance, PracTools, Qtools, questionr, rbw, rdhs, RDS, RegParallel, rineq, SDaA, SIPDIBGE, sirt, sjPlot, sjstats, sregsurvey, survivalVignettes, tidycensus, vtable
Reverse enhances: margins, prediction, stargazer


Please use the canonical form to link to this page.