Learn R Programming

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

survey (version 3.1)

analysis of complex survey samples

Description

Summary statistics, generalised linear 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, GREG estimation, and raking. Graphics.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

75,808

Version

3.1

License

LGPL

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (3.1)

ftable.svystat

Lay out tables of survey statistics
SE

Extract standard errors
dimnames.DBIsvydesign

Dimensions of survey designs
nonresponse

Experimental: Construct non-response weights
svycdf

Cumulative Distribution Function
surveyoptions

Options for the survey package
estweights

Estimated weights for missing data
svy.varcoef

Sandwich variance estimator for glms
calibrate

G-calibration (GREG) estimators
pchisqsum

Distribution of quadratic forms
paley

Paley-type Hadamard matrices
svyCprod

Computations for survey variances
svyrecvar

Variance estimation for multistage surveys
svyratio

Ratio estimation
svykm

Estimate survival function.
svyhist

Histograms
svymle

Maximum pseudolikelihood estimation in complex surveys
svyquantile

Quantiles for sample surveys
crowd

Household crowding
postStratify

Post-stratify a survey
svykappa

Cohen's kappa for agreement
svrVar

Compute variance from replicates
hadamard

Hadamard matrices
svyplot

Plots for survey data
svyloglin

Loglinear models
svydesign

Survey sample analysis.
with.svyimputationList

Analyse multiple imputations
update.survey.design

Add variables to a survey design
svycontrast

Linear and nonlinearconstrasts of survey statistics
surveysummary

Summary statistics for sample surveys
as.fpc

Package sample and population size data
rake

Raking of replicate weight design
svycoxph

Survey-weighted Cox models.
make.calfun

Calibration metrics
as.svrepdesign

Convert a survey design to use replicate weights
confint.svyglm

Confidence intervals for regression parameters
as.svydesign2

Update to the new survey design format
svyolr

Proportional odds and related models
svyglm

Survey-weighted generalised linear models.
open.DBIsvydesign

Open and close DBI connections
regTermTest

Wald test for a term in a regression model
weights.survey.design

Survey design weights
compressWeights

Compress replicate weight matrix
barplot.svystat

Barplots and Dotplots
svrepdesign

Specify survey design with replicate weights
svycoplot

Conditioning plots of survey data
svyby

Survey statistics on subsets
subset.survey.design

Subset of survey
brrweights

Compute replicate weights
withReplicates

Compute variances by replicate weighting
api

Student performance in California schools
election

US 2004 presidential election data at state or county level
bootweights

Compute survey bootstrap weights
mu284

Two-stage sample from MU284
svytable

Contingency tables for survey data
svysmooth

Scatterplot smoothing and density estimation
twophase

Two-phase designs
svyttest

Design-based t-test
svyciprop

Confidence intervals for proportions
HR

Wrappers for specifying PPS designs
marginpred

Standardised predictions (predictive margins) for regression models.
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest