Learn R Programming

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

survey (version 3.33-2)

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

73,193

Version

3.33-2

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 13th, 2018

Functions in survey (3.33-2)

svyttest

Design-based t-test
with.svyimputationList

Analyse multiple imputations
svystandardize

Direct standardization within domains
anova.svyglm

Model comparison for glms.
HR

Wrappers for specifying PPS designs
api

Student performance in California schools
SE

Extract standard errors
calibrate

Calibration (GREG) estimators
compressWeights

Compress replicate weight matrix
nhanes

Cholesterol data from a US survey
ftable.svystat

Lay out tables of survey statistics
hadamard

Hadamard matrices
nonresponse

Experimental: Construct non-response weights
open.DBIsvydesign

Open and close DBI connections
svrVar

Compute variance from replicates
svrepdesign

Specify survey design with replicate weights
paley

Paley-type Hadamard matrices
svycoxph

Survey-weighted Cox models.
svydesign

Survey sample analysis.
svykm

Estimate survival function.
svyrecvar

Variance estimation for multistage surveys
stratsample

Take a stratified sample
update.survey.design

Add variables to a survey design
as.fpc

Package sample and population size data
svyloglin

Loglinear models
as.svrepdesign

Convert a survey design to use replicate weights
weights.survey.design

Survey design weights
svyprcomp

Sampling-weighted principal component analysis
subset.survey.design

Subset of survey
svyby

Survey statistics on subsets
svycdf

Cumulative Distribution Function
svylogrank

Compare survival distributions
svymle

Maximum pseudolikelihood estimation in complex surveys
confint.svyglm

Confidence intervals for regression parameters
svysurvreg

Fit accelerated failure models to survey data
yrbs

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

Predictive marginal means
crowd

Household crowding
trimWeights

Trim sampling weights
marginpred

Standardised predictions (predictive margins) for regression models.
mu284

Two-stage sample from MU284
psrsq

Pseudo-Rsquareds
rake

Raking of replicate weight design
svytable

Contingency tables for survey data
svyciprop

Confidence intervals for proportions
svyolr

Proportional odds and related models
svyplot

Plots for survey data
svysmooth

Scatterplot smoothing and density estimation
withReplicates

Compute variances by replicate weighting
bootweights

Compute survey bootstrap weights
brrweights

Compute replicate weights
as.svydesign2

Update to the new survey design format
barplot.svystat

Barplots and Dotplots
estweights

Estimated weights for missing data
dimnames.DBIsvydesign

Dimensions of survey designs
election

US 2004 presidential election data at state or county level
fpc

Small survey example
pchisqsum

Distribution of quadratic forms
hospital

Sample of obstetric hospitals
postStratify

Post-stratify a survey
make.calfun

Calibration metrics
regTermTest

Wald test for a term in a regression model
scd

Survival in cardiac arrest
svy.varcoef

Sandwich variance estimator for glms
surveyoptions

Options for the survey package
svyCprod

Computations for survey variances
surveysummary

Summary statistics for sample surveys
svyfactanal

Factor analysis in complex surveys (experimental).
svyranktest

Design-based rank tests
svyglm

Survey-weighted generalised linear models.
svyquantile

Quantiles for sample surveys
svycontrast

Linear and nonlinearconstrasts of survey statistics
svycoplot

Conditioning plots of survey data
svyhist

Histograms and boxplots
svykappa

Cohen's kappa for agreement
svyratio

Ratio estimation
twophase

Two-phase designs