Learn R Programming

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

survey (version 3.35)

Analysis of Complex Survey Samples

Description

Summary statistics, two-sample tests, rank tests, generalised linear models, cumulative link models, Cox models, loglinear 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 subsampling designs. Graphics. PPS sampling without replacement. Principal components, factor analysis.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

77,056

Version

3.35

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

December 17th, 2018

Functions in survey (3.35)

HR

Wrappers for specifying PPS designs
brrweights

Compute replicate weights
confint.svyglm

Confidence intervals for regression parameters
crowd

Household crowding
hadamard

Hadamard matrices
pchisqsum

Distribution of quadratic forms
postStratify

Post-stratify a survey
stratsample

Take a stratified sample
subset.survey.design

Subset of survey
hospital

Sample of obstetric hospitals
svy.varcoef

Sandwich variance estimator for glms
make.calfun

Calibration metrics
svyCprod

Computations for survey variances
svrVar

Compute variance from replicates
anova.svyglm

Model comparison for glms.
svrepdesign

Specify survey design with replicate weights
api

Student performance in California schools
svycontrast

Linear and nonlinearconstrasts of survey statistics
estweights

Estimated weights for missing data
as.fpc

Package sample and population size data
as.svrepdesign

Convert a survey design to use replicate weights
calibrate

Calibration (GREG) estimators
svycoplot

Conditioning plots of survey data
compressWeights

Compress replicate weight matrix
svymle

Maximum pseudolikelihood estimation in complex surveys
nhanes

Cholesterol data from a US survey
nonresponse

Experimental: Construct non-response weights
svyolr

Proportional odds and related models
svyplot

Plots for survey data
svyloglin

Loglinear models
surveyoptions

Options for the survey package
fpc

Small survey example
surveysummary

Summary statistics for sample surveys
svyprcomp

Sampling-weighted principal component analysis
as.svydesign2

Update to the new survey design format
svylogrank

Compare survival distributions
trimWeights

Trim sampling weights
svyttest

Design-based t-test
svycoxph

Survey-weighted Cox models.
barplot.svystat

Barplots and Dotplots
svyrecvar

Variance estimation for multistage surveys
svycralpha

Cronbach's alpha
svykappa

Cohen's kappa for agreement
open.DBIsvydesign

Open and close DBI connections
paley

Paley-type Hadamard matrices
regTermTest

Wald test for a term in a regression model
svyby

Survey statistics on subsets
dimnames.DBIsvydesign

Dimensions of survey designs
svysmooth

Scatterplot smoothing and density estimation
weights.survey.design

Survey design weights
svycdf

Cumulative Distribution Function
scd

Survival in cardiac arrest
election

US 2004 presidential election data at state or county level
rake

Raking of replicate weight design
mu284

Two-stage sample from MU284
psrsq

Pseudo-Rsquareds
with.svyimputationList

Analyse multiple imputations
marginpred

Standardised predictions (predictive margins) for regression models.
svytable

Contingency tables for survey data
svykm

Estimate survival function.
svystandardize

Direct standardization within domains
svysurvreg

Fit accelerated failure models to survey data
svyciprop

Confidence intervals for proportions
svyglm

Survey-weighted generalised linear models.
svyfactanal

Factor analysis in complex surveys (experimental).
svypredmeans

Predictive marginal means
svydesign

Survey sample analysis.
twophase

Two-phase designs
svyquantile

Quantiles for sample surveys
update.survey.design

Add variables to a survey design
svyhist

Histograms and boxplots
svyranktest

Design-based rank tests
withReplicates

Compute variances by replicate weighting
yrbs

One variable from the Youth Risk Behaviors Survey, 2015.
svyratio

Ratio estimation
bootweights

Compute survey bootstrap weights
ftable.svystat

Lay out tables of survey statistics
SE

Extract standard errors