Learn R Programming

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

survey (version 2.6-2)

analysis of complex survey samples

Description

Summary statistics, generalised linear models, and general maximum pseudolikelihood estimation for stratified, cluster-sampled, unequally weighted survey samples. Variances by Taylor series linearisation or replicate weights

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

65,927

Version

2.6-2

License

LGPL

Maintainer

Thomas Lumley

Last Published

August 28th, 2025

Functions in survey (2.6-2)

as.svrepdesign

Convert a survey design to use replicate weights
brrweights

Compute replicate weights
hadamard

Hadamard matrices
api

Student performance in California schools
svrVar

Compute variance from replicates
svycoxph

Survey-weighted generalised linear models.
rake

Raking of survey design
crowd

Household crowding
svyquantile

Quantiles for sample surveys
svyCprod

Computations for survey variances
svy.varcoef

Sandwich variance estimator for glms
surveysummary

Summary statistics for sample surveys
svyplot

Plots for survey data
svymle

Maximum pseudolikelihood estimation in complex surveys
regTermTest

Wald test for a term in a regression model
postStratify

Post-stratify a replicate weight survey
svytable

Contingency tables for survey data
svyratio

Ratio estimation
withReplicates

Compute variances by replicate weighting
weights.survey.design

Survey design weights
subset.survey.design

Subset of survey
svyby

Survey statistics on subsets
svyglm

Survey-weighted generalised linear models.
svydesign

Survey sample analysis.
update.survey.design

Add variables to a survey design
svrepdesign

Specify survey design with replicate weights
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals
fpc

Small survey example