Learn R Programming

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

survey (version 3.6-3)

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

103,477

Version

3.6-3

License

LGPL

Maintainer

Thomas Lumley

Last Published

February 24th, 2026

Functions in survey (3.6-3)

as.svydesign2

Update to the new survey design format
bootweights

Compute survey bootstrap weights
surveysummary

Summary statistics for sample surveys
svytable

Contingency tables for survey data
svy.varcoef

Sandwich variance estimator for glms
paley

Paley-type Hadamard matrices
svymle

Maximum pseudolikelihood estimation in complex surveys
svrVar

Compute variance from replicates
brrweights

Compute replicate weights
svysmooth

Scatterplot smoothing and density estimation
svyCprod

Computations for survey variances
svyratio

Ratio estimation
as.fpc

Package sample and population size data
estweights

Estimated weights for missing data
surveyoptions

Options for the survey package
ftable.svystat

Lay out tables of survey statistics
svrepdesign

Specify survey design with replicate weights
as.svrepdesign

Convert a survey design to use replicate weights
regTermTest

Wald test for a term in a regression model
postStratify

Post-stratify a survey
subset.survey.design

Subset of survey
rake

Raking of replicate weight design
withReplicates

Compute variances by replicate weighting
svycoxph

Survey-weighted Cox models.
api

Student performance in California schools
svyby

Survey statistics on subsets
svyhist

Histograms and boxplots
svycontrast

Linear constrasts of survey statistics
svyplot

Plots for survey data
update.survey.design

Add variables to a survey design
svyrecvar

Variance estimation for multistage surveys
twophase

Two-phase designs
svyglm

Survey-weighted generalised linear models.
nonresponse

Experimental: Construct non-response weights
hadamard

Hadamard matrices
calibrate

G-calibration (GREG) estimators
crowd

Household crowding
mu284

Two-stage sample from MU284
compressWeights

Compress replicate weight matrix
svydesign

Survey sample analysis.
weights.survey.design

Survey design weights
svyquantile

Quantiles for sample surveys
SE

Extract standard errors
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest