Learn R Programming

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

survey (version 3.22-4)

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-4

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

October 13th, 2010

Functions in survey (3.22-4)

HR

Wrappers for specifying PPS designs
as.svrepdesign

Convert a survey design to use replicate weights
hadamard

Hadamard matrices
as.fpc

Package sample and population size data
election

US 2004 presidential election data at state or county level
svyfactanal

Factor analysis in complex surveys (experimental).
svyloglin

Loglinear models
stratsample

Take a stratified sample
SE

Extract standard errors
as.svydesign2

Update to the new survey design format
crowd

Household crowding
svyolr

Proportional odds and related models
api

Student performance in California schools
svyby

Survey statistics on subsets
svrVar

Compute variance from replicates
ftable.svystat

Lay out tables of survey statistics
svrepdesign

Specify survey design with replicate weights
svyrecvar

Variance estimation for multistage surveys
subset.survey.design

Subset of survey
marginpred

Standardised predictions (predictive margins) for regression models.
svyquantile

Quantiles for sample surveys
nonresponse

Experimental: Construct non-response weights
svysmooth

Scatterplot smoothing and density estimation
postStratify

Post-stratify a survey
svymle

Maximum pseudolikelihood estimation in complex surveys
svy.varcoef

Sandwich variance estimator for glms
svyplot

Plots for survey data
svycontrast

Linear and nonlinearconstrasts of survey statistics
bootweights

Compute survey bootstrap weights
svydesign

Survey sample analysis.
svycoxph

Survey-weighted Cox models.
svytable

Contingency tables for survey data
surveyoptions

Options for the survey package
svycdf

Cumulative Distribution Function
svyhist

Histograms and boxplots
dimnames.DBIsvydesign

Dimensions of survey designs
estweights

Estimated weights for missing data
brrweights

Compute replicate weights
svyglm

Survey-weighted generalised linear models.
paley

Paley-type Hadamard matrices
svyCprod

Computations for survey variances
svyciprop

Confidence intervals for proportions
open.DBIsvydesign

Open and close DBI connections
twophase

Two-phase designs
withReplicates

Compute variances by replicate weighting
make.calfun

Calibration metrics
rake

Raking of replicate weight design
pchisqsum

Distribution of quadratic forms
svyttest

Design-based t-test
surveysummary

Summary statistics for sample surveys
svyprcomp

Sampling-weighted principal component analysis
svykappa

Cohen's kappa for agreement
barplot.svystat

Barplots and Dotplots
regTermTest

Wald test for a term in a regression model
svycoplot

Conditioning plots of survey data
compressWeights

Compress replicate weight matrix
svykm

Estimate survival function.
weights.survey.design

Survey design weights
with.svyimputationList

Analyse multiple imputations
update.survey.design

Add variables to a survey design
confint.svyglm

Confidence intervals for regression parameters
calibrate

Calibration (GREG) estimators
mu284

Two-stage sample from MU284
svyratio

Ratio estimation
trimWeights

Trim sampling weights
fpc

Small survey example
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals