Learn R Programming

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

survey (version 3.20)

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

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

February 9th, 2010

Functions in survey (3.20)

update.survey.design

Add variables to a survey design
estweights

Estimated weights for missing data
svydesign

Survey sample analysis.
svyplot

Plots for survey data
calibrate

Calibration (GREG) estimators
svyhist

Histograms and boxplots
postStratify

Post-stratify a survey
barplot.svystat

Barplots and Dotplots
svyfactanal

Factor analysis in complex surveys (experimental).
svyrecvar

Variance estimation for multistage surveys
election

US 2004 presidential election data at state or county level
regTermTest

Wald test for a term in a regression model
brrweights

Compute replicate weights
as.svrepdesign

Convert a survey design to use replicate weights
marginpred

Standardised predictions (predictive margins) for regression models.
svyprcomp

Sampling-weighted principal component analysis
svrepdesign

Specify survey design with replicate weights
subset.survey.design

Subset of survey
svyttest

Design-based t-test
as.fpc

Package sample and population size data
compressWeights

Compress replicate weight matrix
svyolr

Proportional odds and related models
svysmooth

Scatterplot smoothing and density estimation
svyratio

Ratio estimation
svy.varcoef

Sandwich variance estimator for glms
make.calfun

Calibration metrics
as.svydesign2

Update to the new survey design format
pchisqsum

Distribution of quadratic forms
nonresponse

Experimental: Construct non-response weights
svycoplot

Conditioning plots of survey data
svyglm

Survey-weighted generalised linear models.
SE

Extract standard errors
paley

Paley-type Hadamard matrices
confint.svyglm

Confidence intervals for regression parameters
svrVar

Compute variance from replicates
svycontrast

Linear and nonlinearconstrasts of survey statistics
withReplicates

Compute variances by replicate weighting
twophase

Two-phase designs
dimnames.DBIsvydesign

Dimensions of survey designs
rake

Raking of replicate weight design
bootweights

Compute survey bootstrap weights
weights.survey.design

Survey design weights
svykm

Estimate survival function.
surveysummary

Summary statistics for sample surveys
open.DBIsvydesign

Open and close DBI connections
crowd

Household crowding
mu284

Two-stage sample from MU284
svyquantile

Quantiles for sample surveys
svyloglin

Loglinear models
svyby

Survey statistics on subsets
HR

Wrappers for specifying PPS designs
svykappa

Cohen's kappa for agreement
svymle

Maximum pseudolikelihood estimation in complex surveys
svyCprod

Computations for survey variances
svytable

Contingency tables for survey data
ftable.svystat

Lay out tables of survey statistics
surveyoptions

Options for the survey package
svycoxph

Survey-weighted Cox models.
api

Student performance in California schools
hadamard

Hadamard matrices
svyciprop

Confidence intervals for proportions
svycdf

Cumulative Distribution Function
with.svyimputationList

Analyse multiple imputations
fpc

Small survey example
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest