Learn R Programming

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

survey (version 3.25)

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.25

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

August 5th, 2011

Functions in survey (3.25)

api

Student performance in California schools
marginpred

Standardised predictions (predictive margins) for regression models.
postStratify

Post-stratify a survey
rake

Raking of replicate weight design
calibrate

Calibration (GREG) estimators
pchisqsum

Distribution of quadratic forms
regTermTest

Wald test for a term in a regression model
stratsample

Take a stratified sample
brrweights

Compute replicate weights
svyCprod

Computations for survey variances
mu284

Two-stage sample from MU284
make.calfun

Calibration metrics
svrVar

Compute variance from replicates
surveysummary

Summary statistics for sample surveys
hadamard

Hadamard matrices
HR

Wrappers for specifying PPS designs
ftable.svystat

Lay out tables of survey statistics
svyby

Survey statistics on subsets
svytable

Contingency tables for survey data
svyquantile

Quantiles for sample surveys
svyfactanal

Factor analysis in complex surveys (experimental).
dimnames.DBIsvydesign

Dimensions of survey designs
svyciprop

Confidence intervals for proportions
subset.survey.design

Subset of survey
svyratio

Ratio estimation
svyranktest

Design-based rank tests
SE

Extract standard errors
svykappa

Cohen's kappa for agreement
as.fpc

Package sample and population size data
svrepdesign

Specify survey design with replicate weights
svyglm

Survey-weighted generalised linear models.
compressWeights

Compress replicate weight matrix
svyolr

Proportional odds and related models
svycoplot

Conditioning plots of survey data
svymle

Maximum pseudolikelihood estimation in complex surveys
bootweights

Compute survey bootstrap weights
svycontrast

Linear and nonlinearconstrasts of survey statistics
nonresponse

Experimental: Construct non-response weights
svycoxph

Survey-weighted Cox models.
svylogrank

Compare survival distributions
as.svrepdesign

Convert a survey design to use replicate weights
estweights

Estimated weights for missing data
svyhist

Histograms and boxplots
svyttest

Design-based t-test
election

US 2004 presidential election data at state or county level
twophase

Two-phase designs
svydesign

Survey sample analysis.
svyloglin

Loglinear models
svyrecvar

Variance estimation for multistage surveys
confint.svyglm

Confidence intervals for regression parameters
svycdf

Cumulative Distribution Function
trimWeights

Trim sampling weights
barplot.svystat

Barplots and Dotplots
svyprcomp

Sampling-weighted principal component analysis
surveyoptions

Options for the survey package
svy.varcoef

Sandwich variance estimator for glms
svyplot

Plots for survey data
open.DBIsvydesign

Open and close DBI connections
update.survey.design

Add variables to a survey design
crowd

Household crowding
svysmooth

Scatterplot smoothing and density estimation
withReplicates

Compute variances by replicate weighting
with.svyimputationList

Analyse multiple imputations
paley

Paley-type Hadamard matrices
as.svydesign2

Update to the new survey design format
svykm

Estimate survival function.
weights.survey.design

Survey design weights
fpc

Small survey example
scd

Survival in cardiac arrest
hospital

Sample of obstetric hospitals