Learn R Programming

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

survey (version 3.23-2)

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.23-2

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 14th, 2011

Functions in survey (3.23-2)

barplot.svystat

Barplots and Dotplots
brrweights

Compute replicate weights
marginpred

Standardised predictions (predictive margins) for regression models.
estweights

Estimated weights for missing data
api

Student performance in California schools
stratsample

Take a stratified sample
HR

Wrappers for specifying PPS designs
crowd

Household crowding
SE

Extract standard errors
postStratify

Post-stratify a survey
as.fpc

Package sample and population size data
surveyoptions

Options for the survey package
bootweights

Compute survey bootstrap weights
svycdf

Cumulative Distribution Function
election

US 2004 presidential election data at state or county level
as.svydesign2

Update to the new survey design format
as.svrepdesign

Convert a survey design to use replicate weights
regTermTest

Wald test for a term in a regression model
svycoplot

Conditioning plots of survey data
compressWeights

Compress replicate weight matrix
ftable.svystat

Lay out tables of survey statistics
svrVar

Compute variance from replicates
calibrate

Calibration (GREG) estimators
open.DBIsvydesign

Open and close DBI connections
svy.varcoef

Sandwich variance estimator for glms
mu284

Two-stage sample from MU284
pchisqsum

Distribution of quadratic forms
rake

Raking of replicate weight design
svyby

Survey statistics on subsets
subset.survey.design

Subset of survey
svrepdesign

Specify survey design with replicate weights
svycoxph

Survey-weighted Cox models.
svycontrast

Linear and nonlinearconstrasts of survey statistics
svyhist

Histograms and boxplots
svyfactanal

Factor analysis in complex surveys (experimental).
svyCprod

Computations for survey variances
dimnames.DBIsvydesign

Dimensions of survey designs
svydesign

Survey sample analysis.
paley

Paley-type Hadamard matrices
hadamard

Hadamard matrices
twophase

Two-phase designs
surveysummary

Summary statistics for sample surveys
svyciprop

Confidence intervals for proportions
svyglm

Survey-weighted generalised linear models.
svykm

Estimate survival function.
confint.svyglm

Confidence intervals for regression parameters
svytable

Contingency tables for survey data
svyplot

Plots for survey data
svyquantile

Quantiles for sample surveys
svyolr

Proportional odds and related models
svyrecvar

Variance estimation for multistage surveys
with.svyimputationList

Analyse multiple imputations
weights.survey.design

Survey design weights
make.calfun

Calibration metrics
svyratio

Ratio estimation
svysmooth

Scatterplot smoothing and density estimation
svyloglin

Loglinear models
svyprcomp

Sampling-weighted principal component analysis
nonresponse

Experimental: Construct non-response weights
svymle

Maximum pseudolikelihood estimation in complex surveys
trimWeights

Trim sampling weights
withReplicates

Compute variances by replicate weighting
svyttest

Design-based t-test
svykappa

Cohen's kappa for agreement
update.survey.design

Add variables to a survey design
fpc

Small survey example
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest