Learn R Programming

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

survey (version 3.6-2)

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. Two-phase designs. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

111,080

Version

3.6-2

License

LGPL

Maintainer

Thomas Lumley

Last Published

August 28th, 2025

Functions in survey (3.6-2)

calibrate

G-calibration (GREG) estimators
estweights

Estimated weights for missing data
api

Student performance in California schools
postStratify

Post-stratify a survey
compressWeights

Compress replicate weight matrix
SE

Extract standard errors
crowd

Household crowding
hadamard

Hadamard matrices
ftable.svystat

Lay out tables of survey statistics
as.svrepdesign

Convert a survey design to use replicate weights
svycontrast

Linear constrasts of survey statistics
svrVar

Compute variance from replicates
svy.varcoef

Sandwich variance estimator for glms
svyquantile

Quantiles for sample surveys
as.svydesign2

Update to the new survey design format
svyplot

Plots for survey data
mu284

Two-stage sample from MU284
bootweights

Compute survey bootstrap weights
svyhist

Histograms and boxplots
update.survey.design

Add variables to a survey design
nonresponse

Experimental: Construct non-response weights
subset.survey.design

Subset of survey
svyCprod

Computations for survey variances
weights.survey.design

Survey design weights
svrepdesign

Specify survey design with replicate weights
regTermTest

Wald test for a term in a regression model
svysmooth

Scatterplot smoothing and density estimation
svymle

Maximum pseudolikelihood estimation in complex surveys
surveyoptions

Options for the survey package
svydesign

Survey sample analysis.
svyratio

Ratio estimation
withReplicates

Compute variances by replicate weighting
svyby

Survey statistics on subsets
svyrecvar

Variance estimation for multistage surveys
svyglm

Survey-weighted generalised linear models.
svycoxph

Survey-weighted Cox models.
surveysummary

Summary statistics for sample surveys
brrweights

Compute replicate weights
rake

Raking of replicate weight design
paley

Paley-type Hadamard matrices
svytable

Contingency tables for survey data
twophase

Two-phase designs
as.fpc

Package sample and population size data
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest
fpc

Small survey example