Learn R Programming

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

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

77,056

Version

3.31-2

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

September 23rd, 2016

Functions in survey (3.31-2)

compressWeights

Compress replicate weight matrix
as.svrepdesign

Convert a survey design to use replicate weights
bootweights

Compute survey bootstrap weights
brrweights

Compute replicate weights
calibrate

Calibration (GREG) estimators
as.svydesign2

Update to the new survey design format
anova.svyglm

Model comparison for glms.
api

Student performance in California schools
barplot.svystat

Barplots and Dotplots
as.fpc

Package sample and population size data
confint.svyglm

Confidence intervals for regression parameters
HR

Wrappers for specifying PPS designs
dimnames.DBIsvydesign

Dimensions of survey designs
fpc

Small survey example
estweights

Estimated weights for missing data
hospital

Sample of obstetric hospitals
election

US 2004 presidential election data at state or county level
crowd

Household crowding
ftable.svystat

Lay out tables of survey statistics
hadamard

Hadamard matrices
postStratify

Post-stratify a survey
mu284

Two-stage sample from MU284
pchisqsum

Distribution of quadratic forms
open.DBIsvydesign

Open and close DBI connections
marginpred

Standardised predictions (predictive margins) for regression models.
make.calfun

Calibration metrics
nonresponse

Experimental: Construct non-response weights
paley

Paley-type Hadamard matrices
rake

Raking of replicate weight design
nhanes

Cholesterol data from a US survey
surveyoptions

Options for the survey package
stratsample

Take a stratified sample
SE

Extract standard errors
regTermTest

Wald test for a term in a regression model
svy.varcoef

Sandwich variance estimator for glms
surveysummary

Summary statistics for sample surveys
scd

Survival in cardiac arrest
svrVar

Compute variance from replicates
svyby

Survey statistics on subsets
subset.survey.design

Subset of survey
svyciprop

Confidence intervals for proportions
svycoplot

Conditioning plots of survey data
svyglm

Survey-weighted generalised linear models.
svycoxph

Survey-weighted Cox models.
svytable

Contingency tables for survey data
svyfactanal

Factor analysis in complex surveys (experimental).
svycdf

Cumulative Distribution Function
svycontrast

Linear and nonlinearconstrasts of survey statistics
svyCprod

Computations for survey variances
svydesign

Survey sample analysis.
svylogrank

Compare survival distributions
svymle

Maximum pseudolikelihood estimation in complex surveys
svyplot

Plots for survey data
svyolr

Proportional odds and related models
svykm

Estimate survival function.
svyloglin

Loglinear models
svypredmeans

Predictive marginal means
svyprcomp

Sampling-weighted principal component analysis
svyhist

Histograms and boxplots
svykappa

Cohen's kappa for agreement
svyquantile

Quantiles for sample surveys
svyranktest

Design-based rank tests
with.svyimputationList

Analyse multiple imputations
weights.survey.design

Survey design weights
svysmooth

Scatterplot smoothing and density estimation
withReplicates

Compute variances by replicate weighting
svystandardize

Direct standardization within domains
svyrecvar

Variance estimation for multistage surveys
svyratio

Ratio estimation
twophase

Two-phase designs
update.survey.design

Add variables to a survey design
svyttest

Design-based t-test
trimWeights

Trim sampling weights