Learn R Programming

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

survey (version 3.21-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.21-2

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 19th, 2010

Functions in survey (3.21-2)

HR

Wrappers for specifying PPS designs
svrepdesign

Specify survey design with replicate weights
marginpred

Standardised predictions (predictive margins) for regression models.
update.survey.design

Add variables to a survey design
svyprcomp

Sampling-weighted principal component analysis
svycontrast

Linear and nonlinearconstrasts of survey statistics
regTermTest

Wald test for a term in a regression model
brrweights

Compute replicate weights
nonresponse

Experimental: Construct non-response weights
svyby

Survey statistics on subsets
bootweights

Compute survey bootstrap weights
surveysummary

Summary statistics for sample surveys
svysmooth

Scatterplot smoothing and density estimation
election

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

Convert a survey design to use replicate weights
surveyoptions

Options for the survey package
svrVar

Compute variance from replicates
svydesign

Survey sample analysis.
weights.survey.design

Survey design weights
SE

Extract standard errors
svycoxph

Survey-weighted Cox models.
as.fpc

Package sample and population size data
make.calfun

Calibration metrics
calibrate

Calibration (GREG) estimators
api

Student performance in California schools
svyhist

Histograms and boxplots
crowd

Household crowding
svyrecvar

Variance estimation for multistage surveys
svyquantile

Quantiles for sample surveys
svyfactanal

Factor analysis in complex surveys (experimental).
paley

Paley-type Hadamard matrices
postStratify

Post-stratify a survey
svycoplot

Conditioning plots of survey data
svytable

Contingency tables for survey data
trimWeights

Trim sampling weights
svykm

Estimate survival function.
with.svyimputationList

Analyse multiple imputations
dimnames.DBIsvydesign

Dimensions of survey designs
rake

Raking of replicate weight design
mu284

Two-stage sample from MU284
open.DBIsvydesign

Open and close DBI connections
hadamard

Hadamard matrices
svyciprop

Confidence intervals for proportions
estweights

Estimated weights for missing data
ftable.svystat

Lay out tables of survey statistics
svykappa

Cohen's kappa for agreement
svyCprod

Computations for survey variances
svycdf

Cumulative Distribution Function
svyplot

Plots for survey data
svyglm

Survey-weighted generalised linear models.
as.svydesign2

Update to the new survey design format
compressWeights

Compress replicate weight matrix
pchisqsum

Distribution of quadratic forms
svyloglin

Loglinear models
svy.varcoef

Sandwich variance estimator for glms
svymle

Maximum pseudolikelihood estimation in complex surveys
withReplicates

Compute variances by replicate weighting
barplot.svystat

Barplots and Dotplots
confint.svyglm

Confidence intervals for regression parameters
subset.survey.design

Subset of survey
twophase

Two-phase designs
svyratio

Ratio estimation
svyolr

Proportional odds and related models
svyttest

Design-based t-test
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest