Learn R Programming

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

survey (version 3.29-4)

analysis of complex survey samples

Description

Summary statistics, two-sample tests, 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

77,056

Version

3.29-4

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 11th, 2013

Functions in survey (3.29-4)

mu284

Two-stage sample from MU284
anova.svyglm

Model comparison for glms.
regTermTest

Wald test for a term in a regression model
SE

Extract standard errors
barplot.svystat

Barplots and Dotplots
brrweights

Compute replicate weights
as.svrepdesign

Convert a survey design to use replicate weights
svycoplot

Conditioning plots of survey data
api

Student performance in California schools
estweights

Estimated weights for missing data
paley

Paley-type Hadamard matrices
svrVar

Compute variance from replicates
as.fpc

Package sample and population size data
svyprcomp

Sampling-weighted principal component analysis
hadamard

Hadamard matrices
confint.svyglm

Confidence intervals for regression parameters
svyloglin

Loglinear models
compressWeights

Compress replicate weight matrix
ftable.svystat

Lay out tables of survey statistics
svycoxph

Survey-weighted Cox models.
with.svyimputationList

Analyse multiple imputations
svymle

Maximum pseudolikelihood estimation in complex surveys
election

US 2004 presidential election data at state or county level
svyplot

Plots for survey data
twophase

Two-phase designs
as.svydesign2

Update to the new survey design format
svysmooth

Scatterplot smoothing and density estimation
subset.survey.design

Subset of survey
surveysummary

Summary statistics for sample surveys
svyolr

Proportional odds and related models
crowd

Household crowding
withReplicates

Compute variances by replicate weighting
bootweights

Compute survey bootstrap weights
svyttest

Design-based t-test
svystandardize

Direct standardization within domains
rake

Raking of replicate weight design
svyrecvar

Variance estimation for multistage surveys
dimnames.DBIsvydesign

Dimensions of survey designs
svyciprop

Confidence intervals for proportions
svyratio

Ratio estimation
surveyoptions

Options for the survey package
svyhist

Histograms and boxplots
nhanes

Cholesterol data from a US survey
nonresponse

Experimental: Construct non-response weights
marginpred

Standardised predictions (predictive margins) for regression models.
svyCprod

Computations for survey variances
update.survey.design

Add variables to a survey design
svycdf

Cumulative Distribution Function
HR

Wrappers for specifying PPS designs
make.calfun

Calibration metrics
svytable

Contingency tables for survey data
svyglm

Survey-weighted generalised linear models.
stratsample

Take a stratified sample
postStratify

Post-stratify a survey
calibrate

Calibration (GREG) estimators
svykm

Estimate survival function.
svycontrast

Linear and nonlinearconstrasts of survey statistics
svydesign

Survey sample analysis.
weights.survey.design

Survey design weights
svyquantile

Quantiles for sample surveys
svrepdesign

Specify survey design with replicate weights
svyfactanal

Factor analysis in complex surveys (experimental).
trimWeights

Trim sampling weights
svylogrank

Compare survival distributions
svyranktest

Design-based rank tests
pchisqsum

Distribution of quadratic forms
svy.varcoef

Sandwich variance estimator for glms
open.DBIsvydesign

Open and close DBI connections
svykappa

Cohen's kappa for agreement
svyby

Survey statistics on subsets
hospital

Sample of obstetric hospitals
scd

Survival in cardiac arrest
fpc

Small survey example