Learn R Programming

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

survey (version 3.4-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

77,056

Version

3.4-2

License

LGPL

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (3.4-2)

hadamard

Hadamard matrices
bootweights

Compute survey bootstrap weights
SE

Extract standard errors
mu284

Two-stage sample from MU284
as.svrepdesign

Convert a survey design to use replicate weights
crowd

Household crowding
subset.survey.design

Subset of survey
svyhist

Histograms
as.fpc

Package sample and population size data
twophase

Two-phase designs
svrepdesign

Specify survey design with replicate weights
rake

Raking of replicate weight design
api

Student performance in California schools
as.svydesign2

Update to the new survey design format
svyplot

Plots for survey data
svy.varcoef

Sandwich variance estimator for glms
paley

Paley-type Hadamard matrices
surveyoptions

Options for the survey package
svycoxph

Survey-weighted Cox models.
svydesign

Survey sample analysis.
ftable.svystat

Lay out tables of survey statistics
svyCprod

Computations for survey variances
svyglm

Survey-weighted generalised linear models.
regTermTest

Wald test for a term in a regression model
compressWeights

Compress replicate weight matrix
svyby

Survey statistics on subsets
postStratify

Post-stratify a survey
nonresponse

Experimental: Construct non-response weights
svyratio

Ratio estimation
svymle

Maximum pseudolikelihood estimation in complex surveys
calibrate

G-calibration (GREG) estimators
surveysummary

Summary statistics for sample surveys
svyrecvar

Variance estimation for multistage surveys
svrVar

Compute variance from replicates
brrweights

Compute replicate weights
withReplicates

Compute variances by replicate weighting
svytable

Contingency tables for survey data
weights.survey.design

Survey design weights
svyquantile

Quantiles for sample surveys
update.survey.design

Add variables to a survey design
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest