Learn R Programming

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

survey (version 3.18)

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.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

62,531

Version

3.18

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

September 22nd, 2009

Functions in survey (3.18)

barplot.svystat

Barplots and Dotplots
surveyoptions

Options for the survey package
svycdf

Cumulative Distribution Function
svyrecvar

Variance estimation for multistage surveys
update.survey.design

Add variables to a survey design
svrepdesign

Specify survey design with replicate weights
as.fpc

Package sample and population size data
as.svrepdesign

Convert a survey design to use replicate weights
svy.varcoef

Sandwich variance estimator for glms
mu284

Two-stage sample from MU284
svyttest

Design-based t-test
svyplot

Plots for survey data
open.DBIsvydesign

Open and close DBI connections
svykm

Estimate survival function.
calibrate

Calibration (GREG) estimators
twophase

Two-phase designs
dimnames.DBIsvydesign

Dimensions of survey designs
svycoxph

Survey-weighted Cox models.
SE

Extract standard errors
svrVar

Compute variance from replicates
svyolr

Proportional odds and related models
svyquantile

Quantiles for sample surveys
make.calfun

Calibration metrics
svyby

Survey statistics on subsets
pchisqsum

Distribution of quadratic forms
compressWeights

Compress replicate weight matrix
paley

Paley-type Hadamard matrices
crowd

Household crowding
withReplicates

Compute variances by replicate weighting
svycoplot

Conditioning plots of survey data
ftable.svystat

Lay out tables of survey statistics
svycontrast

Linear and nonlinearconstrasts of survey statistics
nonresponse

Experimental: Construct non-response weights
surveysummary

Summary statistics for sample surveys
brrweights

Compute replicate weights
marginpred

Standardised predictions (predictive margins) for regression models.
svyglm

Survey-weighted generalised linear models.
svysmooth

Scatterplot smoothing and density estimation
svymle

Maximum pseudolikelihood estimation in complex surveys
svyloglin

Loglinear models
weights.survey.design

Survey design weights
bootweights

Compute survey bootstrap weights
api

Student performance in California schools
election

US 2004 presidential election data at state or county level
svyhist

Histograms and boxplots
regTermTest

Wald test for a term in a regression model
postStratify

Post-stratify a survey
svyciprop

Confidence intervals for proportions
HR

Wrappers for specifying PPS designs
rake

Raking of replicate weight design
svydesign

Survey sample analysis.
estweights

Estimated weights for missing data
confint.svyglm

Confidence intervals for regression parameters
svytable

Contingency tables for survey data
as.svydesign2

Update to the new survey design format
subset.survey.design

Subset of survey
hadamard

Hadamard matrices
svyCprod

Computations for survey variances
svykappa

Cohen's kappa for agreement
svyratio

Ratio estimation
with.svyimputationList

Analyse multiple imputations
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest