Learn R Programming

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

survey (version 3.32-1)

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

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

June 22nd, 2017

Functions in survey (3.32-1)

as.fpc

Package sample and population size data
as.svrepdesign

Convert a survey design to use replicate weights
anova.svyglm

Model comparison for glms.
api

Student performance in California schools
HR

Wrappers for specifying PPS designs
SE

Extract standard errors
as.svydesign2

Update to the new survey design format
barplot.svystat

Barplots and Dotplots
bootweights

Compute survey bootstrap weights
brrweights

Compute replicate weights
estweights

Estimated weights for missing data
fpc

Small survey example
confint.svyglm

Confidence intervals for regression parameters
crowd

Household crowding
open.DBIsvydesign

Open and close DBI connections
paley

Paley-type Hadamard matrices
stratsample

Take a stratified sample
subset.survey.design

Subset of survey
svy.varcoef

Sandwich variance estimator for glms
svyCprod

Computations for survey variances
hospital

Sample of obstetric hospitals
make.calfun

Calibration metrics
surveyoptions

Options for the survey package
svyhist

Histograms and boxplots
svykappa

Cohen's kappa for agreement
svyquantile

Quantiles for sample surveys
dimnames.DBIsvydesign

Dimensions of survey designs
election

US 2004 presidential election data at state or county level
nhanes

Cholesterol data from a US survey
nonresponse

Experimental: Construct non-response weights
psrsq

Pseudo-Rsquareds
rake

Raking of replicate weight design
svycontrast

Linear and nonlinearconstrasts of survey statistics
ftable.svystat

Lay out tables of survey statistics
hadamard

Hadamard matrices
marginpred

Standardised predictions (predictive margins) for regression models.
mu284

Two-stage sample from MU284
regTermTest

Wald test for a term in a regression model
scd

Survival in cardiac arrest
svycoxph

Survey-weighted Cox models.
svydesign

Survey sample analysis.
svycoplot

Conditioning plots of survey data
svykm

Estimate survival function.
svyloglin

Loglinear models
svyprcomp

Sampling-weighted principal component analysis
svyranktest

Design-based rank tests
with.svyimputationList

Analyse multiple imputations
withReplicates

Compute variances by replicate weighting
svypredmeans

Predictive marginal means
svylogrank

Compare survival distributions
svymle

Maximum pseudolikelihood estimation in complex surveys
svysmooth

Scatterplot smoothing and density estimation
svystandardize

Direct standardization within domains
yrbs

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

Calibration (GREG) estimators
compressWeights

Compress replicate weight matrix
pchisqsum

Distribution of quadratic forms
postStratify

Post-stratify a survey
svrVar

Compute variance from replicates
svrepdesign

Specify survey design with replicate weights
svyby

Survey statistics on subsets
svycdf

Cumulative Distribution Function
svyolr

Proportional odds and related models
svyplot

Plots for survey data
svyratio

Ratio estimation
surveysummary

Summary statistics for sample surveys
svytable

Contingency tables for survey data
svyciprop

Confidence intervals for proportions
svyfactanal

Factor analysis in complex surveys (experimental).
svyglm

Survey-weighted generalised linear models.
svysurvreg

Fit accelerated failure models to survey data
svyttest

Design-based t-test
svyrecvar

Variance estimation for multistage surveys
trimWeights

Trim sampling weights
twophase

Two-phase designs
update.survey.design

Add variables to a survey design
weights.survey.design

Survey design weights