Learn R Programming

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

survey (version 2.9-1)

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. Post-stratification and raking. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

98,093

Version

2.9-1

License

LGPL

Maintainer

Thomas Lumley

Last Published

February 24th, 2026

Functions in survey (2.9-1)

svyplot

Plots for survey data
as.fpc

Package sample and population size data
bootweights

Compute survey bootstrap weights
svyby

Survey statistics on subsets
brrweights

Compute replicate weights
surveyoptions

Options for the survey package
svytable

Contingency tables for survey data
svy.varcoef

Sandwich variance estimator for glms
compressWeights

Compress replicate weight matrix
mu284

Two-stage sample from MU284
as.svrepdesign

Convert a survey design to use replicate weights
postStratify

Post-stratify a survey
paley

Paley-type Hadamard matrices
svymle

Maximum pseudolikelihood estimation in complex surveys
svyhist

Histograms
weights.survey.design

Survey design weights
svycoxph

Survey-weighted generalised linear models.
svyCprod

Computations for survey variances
crowd

Household crowding
rake

Raking of replicate weight design
SE

Extract standard errors
regTermTest

Wald test for a term in a regression model
svyrecvar

Variance estimation for multistage surveys
svrVar

Compute variance from replicates
svyquantile

Quantiles for sample surveys
withReplicates

Compute variances by replicate weighting
svyratio

Ratio estimation
surveysummary

Summary statistics for sample surveys
nonresponse

Experimental: Construct non-response weights
svyglm

Survey-weighted generalised linear models.
svrepdesign

Specify survey design with replicate weights
svydesign

Survey sample analysis.
hadamard

Hadamard matrices
as.svydesign2

Update to the new survey design format
subset.survey.design

Subset of survey
ftable.svystat

Lay out tables of survey statistics
update.survey.design

Add variables to a survey design
api

Student performance in California schools
fpc

Small survey example
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals