Learn R Programming

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

survey (version 3.9-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, calibration, and raking. Two-phase designs. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

60,281

Version

3.9-1

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (3.9-1)

as.fpc

Package sample and population size data
api

Student performance in California schools
crowd

Household crowding
calibrate

G-calibration (GREG) estimators
svy.varcoef

Sandwich variance estimator for glms
svyrecvar

Variance estimation for multistage surveys
svymle

Maximum pseudolikelihood estimation in complex surveys
rake

Raking of replicate weight design
svycoxph

Survey-weighted Cox models.
svyhist

Histograms and boxplots
svykappa

Cohen's kappa for agreement
svyquantile

Quantiles for sample surveys
paley

Paley-type Hadamard matrices
twophase

Two-phase designs
regTermTest

Wald test for a term in a regression model
svysmooth

Scatterplot smoothing and density estimation
surveyoptions

Options for the survey package
subset.survey.design

Subset of survey
open.DBIsvydesign

Open and close DBI connections
SE

Extract standard errors
svrepdesign

Specify survey design with replicate weights
pchisqsum

Distribution of quadratic forms
brrweights

Compute replicate weights
svydesign

Survey sample analysis.
update.survey.design

Add variables to a survey design
svytable

Contingency tables for survey data
withReplicates

Compute variances by replicate weighting
hadamard

Hadamard matrices
with.svyimputationList

Analyse multiple imputations
svyolr

Proportional odds and related models
svykm

Estimate survival function.
weights.survey.design

Survey design weights
as.svydesign2

Update to the new survey design format
mu284

Two-stage sample from MU284
svyby

Survey statistics on subsets
postStratify

Post-stratify a survey
svyglm

Survey-weighted generalised linear models.
bootweights

Compute survey bootstrap weights
make.calfun

Calibration metrics
svycoplot

Conditioning plots of survey data
svrVar

Compute variance from replicates
svyplot

Plots for survey data
svyratio

Ratio estimation
estweights

Estimated weights for missing data
svycontrast

Linear constrasts of survey statistics
surveysummary

Summary statistics for sample surveys
as.svrepdesign

Convert a survey design to use replicate weights
compressWeights

Compress replicate weight matrix
svyCprod

Computations for survey variances
ftable.svystat

Lay out tables of survey statistics
svycdf

Cumulative Distribution Function
nonresponse

Experimental: Construct non-response weights
fpc

Small survey example
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest