Learn R Programming

⚠️There's a newer version (4.5) of this package.Take me there.

survey (version 3.2-1)

analysis of complex survey samples

Description

Summary statistics, generalised linear 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, GREG estimation, and raking. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

103,477

Version

3.2-1

License

LGPL

Maintainer

Thomas Lumley

Last Published

February 24th, 2026

Functions in survey (3.2-1)

paley

Paley-type Hadamard matrices
SE

Extract standard errors
as.fpc

Package sample and population size data
compressWeights

Compress replicate weight matrix
regTermTest

Wald test for a term in a regression model
mu284

Two-stage sample from MU284
subset.survey.design

Subset of survey
calibrate

G-calibration (GREG) estimators
svy.varcoef

Sandwich variance estimator for glms
svyrecvar

Variance estimation for multistage surveys
svytable

Contingency tables for survey data
ftable.svystat

Lay out tables of survey statistics
postStratify

Post-stratify a survey
surveyoptions

Options for the survey package
brrweights

Compute replicate weights
bootweights

Compute survey bootstrap weights
svrepdesign

Specify survey design with replicate weights
as.svydesign2

Update to the new survey design format
withReplicates

Compute variances by replicate weighting
svydesign

Survey sample analysis.
svyby

Survey statistics on subsets
svycoxph

Survey-weighted Cox models.
surveysummary

Summary statistics for sample surveys
rake

Raking of replicate weight design
hadamard

Hadamard matrices
svyratio

Ratio estimation
nonresponse

Experimental: Construct non-response weights
crowd

Household crowding
svyCprod

Computations for survey variances
svyplot

Plots for survey data
svyquantile

Quantiles for sample surveys
update.survey.design

Add variables to a survey design
svyhist

Histograms
as.svrepdesign

Convert a survey design to use replicate weights
api

Student performance in California schools
svyglm

Survey-weighted generalised linear models.
svrVar

Compute variance from replicates
weights.survey.design

Survey design weights
svymle

Maximum pseudolikelihood estimation in complex surveys
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals
make.calfun

Calibration metrics
dimnames.DBIsvydesign

Dimensions of survey designs
svycdf

Cumulative Distribution Function
svyolr

Proportional odds and related models
svycoplot

Conditioning plots of survey data
svyprcomp

Sampling-weighted principal component analysis
confint.svyglm

Confidence intervals for regression parameters
svysmooth

Scatterplot smoothing and density estimation
election

US 2004 presidential election data at state or county level
HR

Wrappers for specifying PPS designs
svyfactanal

Factor analysis in complex surveys (experimental).
fpc

Small survey example
pchisqsum

Distribution of quadratic forms
estweights

Estimated weights for missing data
svykappa

Cohen's kappa for agreement
trimWeights

Trim sampling weights
marginpred

Standardised predictions (predictive margins) for regression models.
svyciprop

Confidence intervals for proportions
with.svyimputationList

Analyse multiple imputations
svyttest

Design-based t-test
open.DBIsvydesign

Open and close DBI connections
twophase

Two-phase designs
svykm

Estimate survival function.
svyloglin

Loglinear models
barplot.svystat

Barplots and Dotplots
stratsample

Take a stratified sample
svycontrast

Linear and nonlinearconstrasts of survey statistics