Learn R Programming

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

survey (version 3.35-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

75,924

Version

3.35-1

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

January 29th, 2019

Functions in survey (3.35-1)

anova.svyglm

Model comparison for glms.
HR

Wrappers for specifying PPS designs
SE

Extract standard errors
marginpred

Standardised predictions (predictive margins) for regression models.
as.fpc

Package sample and population size data
as.svrepdesign

Convert a survey design to use replicate weights
confint.svyglm

Confidence intervals for regression parameters
mu284

Two-stage sample from MU284
dimnames.DBIsvydesign

Dimensions of survey designs
regTermTest

Wald test for a term in a regression model
scd

Survival in cardiac arrest
svycoxph

Survey-weighted Cox models.
svycralpha

Cronbach's alpha
crowd

Household crowding
election

US 2004 presidential election data at state or county level
svylogrank

Compare survival distributions
svyloglin

Loglinear models
open.DBIsvydesign

Open and close DBI connections
paley

Paley-type Hadamard matrices
surveyoptions

Options for the survey package
svystandardize

Direct standardization within domains
surveysummary

Summary statistics for sample surveys
svysurvreg

Fit accelerated failure models to survey data
svyby

Survey statistics on subsets
stratsample

Take a stratified sample
svycdf

Cumulative Distribution Function
weights.survey.design

Survey design weights
subset.survey.design

Subset of survey
svytable

Contingency tables for survey data
with.svyimputationList

Analyse multiple imputations
svyciprop

Confidence intervals for proportions
svykappa

Cohen's kappa for agreement
nhanes

Cholesterol data from a US survey
nonresponse

Experimental: Construct non-response weights
svykm

Estimate survival function.
svycontrast

Linear and nonlinearconstrasts of survey statistics
svycoplot

Conditioning plots of survey data
as.svydesign2

Update to the new survey design format
barplot.svystat

Barplots and Dotplots
svymle

Maximum pseudolikelihood estimation in complex surveys
ftable.svystat

Lay out tables of survey statistics
svyolr

Proportional odds and related models
svyplot

Plots for survey data
svyranktest

Design-based rank tests
svyprcomp

Sampling-weighted principal component analysis
hadamard

Hadamard matrices
svyratio

Ratio estimation
twophase

Two-phase designs
pchisqsum

Distribution of quadratic forms
update.survey.design

Add variables to a survey design
postStratify

Post-stratify a survey
psrsq

Pseudo-Rsquareds
rake

Raking of replicate weight design
svydesign

Survey sample analysis.
bootweights

Compute survey bootstrap weights
svyfactanal

Factor analysis in complex surveys (experimental).
svyrecvar

Variance estimation for multistage surveys
svysmooth

Scatterplot smoothing and density estimation
svyttest

Design-based t-test
estweights

Estimated weights for missing data
brrweights

Compute replicate weights
fpc

Small survey example
hospital

Sample of obstetric hospitals
trimWeights

Trim sampling weights
make.calfun

Calibration metrics
svrVar

Compute variance from replicates
svrepdesign

Specify survey design with replicate weights
svy.varcoef

Sandwich variance estimator for glms
svyCprod

Computations for survey variances
svyglm

Survey-weighted generalised linear models.
svyhist

Histograms and boxplots
svypredmeans

Predictive marginal means
svyquantile

Quantiles for sample surveys
withReplicates

Compute variances by replicate weighting
yrbs

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

Student performance in California schools
calibrate

Calibration (GREG) estimators
compressWeights

Compress replicate weight matrix