Learn R Programming

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

survey (version 3.6-1)

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.6-1

License

LGPL

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (3.6-1)

postStratify

Post-stratify a survey
svytable

Contingency tables for survey data
regTermTest

Wald test for a term in a regression model
svyhist

Histograms and boxplots
ftable.svystat

Lay out tables of survey statistics
svy.varcoef

Sandwich variance estimator for glms
nonresponse

Experimental: Construct non-response weights
as.svrepdesign

Convert a survey design to use replicate weights
svyrecvar

Variance estimation for multistage surveys
rake

Raking of replicate weight design
mu284

Two-stage sample from MU284
crowd

Household crowding
svyratio

Ratio estimation
SE

Extract standard errors
svycontrast

Linear constrasts of survey statistics
svrVar

Compute variance from replicates
as.svydesign2

Update to the new survey design format
svycoxph

Survey-weighted Cox models.
svyby

Survey statistics on subsets
update.survey.design

Add variables to a survey design
api

Student performance in California schools
as.fpc

Package sample and population size data
surveyoptions

Options for the survey package
paley

Paley-type Hadamard matrices
brrweights

Compute replicate weights
svyCprod

Computations for survey variances
weights.survey.design

Survey design weights
svrepdesign

Specify survey design with replicate weights
svysmooth

Scatterplot smoothing and density estimation
compressWeights

Compress replicate weight matrix
svyglm

Survey-weighted generalised linear models.
svydesign

Survey sample analysis.
subset.survey.design

Subset of survey
svymle

Maximum pseudolikelihood estimation in complex surveys
calibrate

G-calibration (GREG) estimators
withReplicates

Compute variances by replicate weighting
pchisqsum

Distribution of quadratic forms
hadamard

Hadamard matrices
make.calfun

Calibration metrics
twophase

Two-phase designs
estweights

Estimated weights for missing data
surveysummary

Summary statistics for sample surveys
svyplot

Plots for survey data
bootweights

Compute survey bootstrap weights
svyquantile

Quantiles for sample surveys
svycdf

Cumulative Distribution Function
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals
fpc

Small survey example