Learn R Programming

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

survey (version 3.12)

analysis of complex survey samples

Description

Summary statistics, generalised linear 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 designs. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

64,520

Version

3.12

License

GPL-2 | GPL-3

Maintainer

Thomas Lumley

Last Published

March 22nd, 2009

Functions in survey (3.12)

nonresponse

Experimental: Construct non-response weights
regTermTest

Wald test for a term in a regression model
barplot.svystat

Barplots and Dotplots
svyolr

Proportional odds and related models
election

US 2004 presidential election data at state or county level
make.calfun

Calibration metrics
confint.svyglm

Confidence intervals for regression parameters
svyby

Survey statistics on subsets
calibrate

G-calibration (GREG) estimators
ftable.svystat

Lay out tables of survey statistics
subset.survey.design

Subset of survey
compressWeights

Compress replicate weight matrix
update.survey.design

Add variables to a survey design
svyttest

Design-based t-test
open.DBIsvydesign

Open and close DBI connections
pchisqsum

Distribution of quadratic forms
svyratio

Ratio estimation
svydesign

Survey sample analysis.
withReplicates

Compute variances by replicate weighting
svykm

Estimate survival function.
hadamard

Hadamard matrices
with.svyimputationList

Analyse multiple imputations
svysmooth

Scatterplot smoothing and density estimation
paley

Paley-type Hadamard matrices
svyCprod

Computations for survey variances
bootweights

Compute survey bootstrap weights
svyplot

Plots for survey data
twophase

Two-phase designs
estweights

Estimated weights for missing data
svyquantile

Quantiles for sample surveys
svrepdesign

Specify survey design with replicate weights
as.svrepdesign

Convert a survey design to use replicate weights
dimnames.DBIsvydesign

Dimensions of survey designs
api

Student performance in California schools
weights.survey.design

Survey design weights
SE

Extract standard errors
surveysummary

Summary statistics for sample surveys
svycdf

Cumulative Distribution Function
mu284

Two-stage sample from MU284
crowd

Household crowding
svyrecvar

Variance estimation for multistage surveys
svy.varcoef

Sandwich variance estimator for glms
svykappa

Cohen's kappa for agreement
svymle

Maximum pseudolikelihood estimation in complex surveys
as.svydesign2

Update to the new survey design format
svycoplot

Conditioning plots of survey data
as.fpc

Package sample and population size data
svyglm

Survey-weighted generalised linear models.
brrweights

Compute replicate weights
rake

Raking of replicate weight design
surveyoptions

Options for the survey package
svyhist

Histograms and boxplots
postStratify

Post-stratify a survey
svyloglin

Loglinear models
svyciprop

Confidence intervals for proportions
svycoxph

Survey-weighted Cox models.
svytable

Contingency tables for survey data
svycontrast

Linear and nonlinearconstrasts of survey statistics
svrVar

Compute variance from replicates
scd

Survival in cardiac arrest
fpc

Small survey example
hospital

Sample of obstetric hospitals