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. Principal components, factor analysis.

Version: 3.37
Depends: R (≥ 3.1.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: 2020-01-21
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
Obsolete formulas for two-phase variances
Analysing PPS designs
A survey analysis example
Package source: survey_3.37.tar.gz
Windows binaries: r-devel:, r-devel-gcc8:, r-release:, r-oldrel:
OS X binaries: r-release: survey_3.37.tgz, r-oldrel: survey_3.37.tgz
Old sources: survey archive

Reverse dependencies:

Reverse depends: CalibrateSSB, cjoint, hopit, lavaan.survey, mapStats, MedSurvey, MOJOV, pedgene, relaimpo, sae2, samplingbook, sptm, ssfit, StatMatch, svydiags, svyPVpack, twang, weightTAPSPACK
Reverse imports: aGE, anthro, capm, causaldrf, convey, cregg, dgo, DHS.rates, dvmisc, EffectLiteR, effects, egor, GB2, GJRM, httk, ICS, ICtest, jskm, jsmodule, jstable, mase, MatchThem, microsynth, OmnibusFisher, paramhetero, Plasmode, PNADcIBGE, poliscidata, pricesensitivitymeter, rareGE, RNHANES, robsurvey, srvyr, StroupGLMM, SUMMER, SvyNom, tab, tableone, Zelig
Reverse suggests: apyramid, BIFIEsurvey, broom, car, finalfit, ggeffects, grattan, hutils, inca, inctools, insight, interactions, ipw, jtools, logmult, parameters, PracTools, Qtools, rdhs, RDS, SDaA, sirt, sjPlot, sjstats, WeightIt
Reverse enhances: margins, prediction, stargazer, texreg


Please use the canonical form to link to this page.