Learn R Programming

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

survey (version 3.3-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. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

75,808

Version

3.3-2

License

LGPL

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (3.3-2)

compressWeights

Compress replicate weight matrix
calibrate

G-calibration (GREG) estimators
svyCprod

Computations for survey variances
svycoxph

Survey-weighted Cox models.
bootweights

Compute survey bootstrap weights
subset.survey.design

Subset of survey
crowd

Household crowding
svyquantile

Quantiles for sample surveys
as.svrepdesign

Convert a survey design to use replicate weights
svytable

Contingency tables for survey data
svy.varcoef

Sandwich variance estimator for glms
rake

Raking of replicate weight design
postStratify

Post-stratify a survey
brrweights

Compute replicate weights
surveysummary

Summary statistics for sample surveys
ftable.svystat

Lay out tables of survey statistics
svyglm

Survey-weighted generalised linear models.
mu284

Two-stage sample from MU284
as.fpc

Package sample and population size data
weights.survey.design

Survey design weights
api

Student performance in California schools
update.survey.design

Add variables to a survey design
withReplicates

Compute variances by replicate weighting
svrepdesign

Specify survey design with replicate weights
svyplot

Plots for survey data
regTermTest

Wald test for a term in a regression model
svyratio

Ratio estimation
hadamard

Hadamard matrices
svrVar

Compute variance from replicates
SE

Extract standard errors
paley

Paley-type Hadamard matrices
svyby

Survey statistics on subsets
surveyoptions

Options for the survey package
as.svydesign2

Update to the new survey design format
svyhist

Histograms
svydesign

Survey sample analysis.
nonresponse

Experimental: Construct non-response weights
svyrecvar

Variance estimation for multistage surveys
svymle

Maximum pseudolikelihood estimation in complex surveys
scd

Survival in cardiac arrest
fpc

Small survey example
hospital

Sample of obstetric hospitals