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.

Version: 4.1-1
Depends: R (≥ 3.5.0), grid, methods, Matrix, survival
Imports: stats, graphics, splines, lattice, minqa, numDeriv, mitools (≥ 2.4)
Suggests: foreign, MASS, KernSmooth, hexbin, RSQLite, quantreg, parallel, CompQuadForm, DBI, AER
Published: 2021-07-19
Author: Thomas Lumley
Maintainer: "Thomas Lumley" <t.lumley at>
License: GPL-2 | GPL-3
NeedsCompilation: no
Citation: survey citation info
Materials: NEWS
In views: OfficialStatistics, SocialSciences, Survival
CRAN checks: survey results


Reference manual: survey.pdf
Vignettes: Estimates in subpopulations
Two-phase designs in epidemiology
Analysing PPS designs
Quantile rules
A survey analysis example


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

Reverse dependencies:

Reverse depends: CalibrateSSB, cjoint, csurvey, eatRep, glm.predict, hopit, lavaan.survey, mapStats, MedSurvey, pedgene, relaimpo, samplingbook, spsurvey, sptm, ssfit, StatMatch, svydiags, svyVGAM
Reverse imports: aGE, anthro, apc, APCI, capm, casen, causaldrf, ccdf, convey, COVIDIBGE, cregg, DAMisc, dearseq, DHS.rates, dvmisc, ech, EffectLiteR, effects, ergm.ego, FamAgg, GB2, GJRM, GreedyExperimentalDesign, httk, ICS, ICtest, iNZightPlots, iNZightTools, IRexamples, jskm, jsmodule, jstable, LLM, mase, MatchThem, microsynth, mixcure, MixedIndTests, OmnibusFisher, optmatch, OVtool, paramhetero, PNADcIBGE, PNSIBGE, POFIBGE, poliscidata, pricesensitivitymeter, rareGE, RNHANES, robsurvey, SAMBA, SBdecomp, SightabilityModel, srvyr, StroupGLMM, SUMMER, surf, SvyNom, tab, tableone, twang, twangContinuous, twangMediation, whomds, Zelig
Reverse suggests: anthroplus, apyramid, BIFIEsurvey, broom, broom.helpers, car, cpsvote, egor, finalfit, GENESIS, ggeffects, grattan, gtsummary, hutils, inca, inctools, insight, interactions, iNZightRegression, ipw, jtools, kyotil, logmult, marginaleffects, mcmcsae, optimall, parameters, performance, PracTools, Qtools, questionr, rbw, rdhs, RDS, RegParallel, SDaA, SIPDIBGE, sirt, sjPlot, sjstats, sregsurvey, tidycensus, vtable, WeightIt
Reverse enhances: margins, prediction, stargazer


Please use the canonical form to link to this page.