Learn R Programming

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

survey (version 3.22-3)

analysis of complex survey samples

Description

Summary statistics, 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. Predictive margins by direct standardization. PPS sampling without replacement. Principal components, factor analysis.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

62,531

Version

3.22-3

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

August 8th, 2010

Functions in survey (3.22-3)

api

Student performance in California schools
hadamard

Hadamard matrices
dimnames.DBIsvydesign

Dimensions of survey designs
bootweights

Compute survey bootstrap weights
estweights

Estimated weights for missing data
surveyoptions

Options for the survey package
as.fpc

Package sample and population size data
surveysummary

Summary statistics for sample surveys
barplot.svystat

Barplots and Dotplots
confint.svyglm

Confidence intervals for regression parameters
brrweights

Compute replicate weights
svyby

Survey statistics on subsets
compressWeights

Compress replicate weight matrix
stratsample

Take a stratified sample
election

US 2004 presidential election data at state or county level
svrepdesign

Specify survey design with replicate weights
marginpred

Standardised predictions (predictive margins) for regression models.
svytable

Contingency tables for survey data
svy.varcoef

Sandwich variance estimator for glms
svycontrast

Linear and nonlinearconstrasts of survey statistics
open.DBIsvydesign

Open and close DBI connections
svycdf

Cumulative Distribution Function
subset.survey.design

Subset of survey
HR

Wrappers for specifying PPS designs
svyolr

Proportional odds and related models
as.svrepdesign

Convert a survey design to use replicate weights
paley

Paley-type Hadamard matrices
mu284

Two-stage sample from MU284
make.calfun

Calibration metrics
svyCprod

Computations for survey variances
pchisqsum

Distribution of quadratic forms
svyquantile

Quantiles for sample surveys
svyciprop

Confidence intervals for proportions
regTermTest

Wald test for a term in a regression model
svrVar

Compute variance from replicates
svykappa

Cohen's kappa for agreement
ftable.svystat

Lay out tables of survey statistics
SE

Extract standard errors
nonresponse

Experimental: Construct non-response weights
calibrate

Calibration (GREG) estimators
rake

Raking of replicate weight design
as.svydesign2

Update to the new survey design format
svyratio

Ratio estimation
update.survey.design

Add variables to a survey design
crowd

Household crowding
svyglm

Survey-weighted generalised linear models.
svysmooth

Scatterplot smoothing and density estimation
svycoxph

Survey-weighted Cox models.
svyloglin

Loglinear models
svymle

Maximum pseudolikelihood estimation in complex surveys
svycoplot

Conditioning plots of survey data
twophase

Two-phase designs
svydesign

Survey sample analysis.
svyfactanal

Factor analysis in complex surveys (experimental).
svykm

Estimate survival function.
trimWeights

Trim sampling weights
svyplot

Plots for survey data
with.svyimputationList

Analyse multiple imputations
withReplicates

Compute variances by replicate weighting
svyprcomp

Sampling-weighted principal component analysis
svyhist

Histograms and boxplots
svyttest

Design-based t-test
postStratify

Post-stratify a survey
weights.survey.design

Survey design weights
svyrecvar

Variance estimation for multistage surveys
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest
fpc

Small survey example