Learn R Programming

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

survey (version 4.1-1)

Analysis of Complex Survey Samples

Description

Summary statistics, two-sample tests, rank 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. PPS sampling without replacement.

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

51,853

Version

4.1-1

License

GPL-2 | GPL-3

Maintainer

Last Published

July 19th, 2021

Functions in survey (4.1-1)

api

Student performance in California schools
SE

Extract standard errors
brrweights

Compute replicate weights
as.svydesign2

Update to the new survey design format
as.fpc

Package sample and population size data
barplot.svystat

Barplots and Dotplots
bootweights

Compute survey bootstrap weights
HR

Wrappers for specifying PPS designs
as.svrepdesign

Convert a survey design to use replicate weights
anova.svyglm

Model comparison for glms.
fpc

Small survey example
dimnames.DBIsvydesign

Dimensions of survey designs
estweights

Estimated weights for missing data
ftable.svystat

Lay out tables of survey statistics
hadamard

Hadamard matrices
open.DBIsvydesign

Open and close DBI connections
compressWeights

Compress replicate weight matrix
calibrate

Calibration (GREG) estimators
oldsvyquantile

Deprecated implementation of quantiles
crowd

Household crowding
nhanes

Cholesterol data from a US survey
marginpred

Standardised predictions (predictive margins) for regression models.
confint.svyglm

Confidence intervals for regression parameters
nonresponse

Experimental: Construct non-response weights
paley

Paley-type Hadamard matrices
pchisqsum

Distribution of quadratic forms
mu284

Two-stage sample from MU284
hospital

Sample of obstetric hospitals
stratsample

Take a stratified sample
rake

Raking of replicate weight design
make.calfun

Calibration metrics
psrsq

Pseudo-Rsquareds
poisson_sampling

Specify Poisson sampling design
election

US 2004 presidential election data at state or county level
surveyoptions

Options for the survey package
regTermTest

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

Subset of survey
postStratify

Post-stratify a survey
scd

Survival in cardiac arrest
surveysummary

Summary statistics for sample surveys
svyciprop

Confidence intervals for proportions
svytable

Contingency tables for survey data
svyby

Survey statistics on subsets
svycdf

Cumulative Distribution Function
svycoplot

Conditioning plots of survey data
svycontrast

Linear and nonlinearconstrasts of survey statistics
svy.varcoef

Sandwich variance estimator for glms
svyCprod

Computations for survey variances
svykm

Estimate survival function.
svykappa

Cohen's kappa for agreement
svrVar

Compute variance from replicates
svrepdesign

Specify survey design with replicate weights
svycoxph

Survey-weighted Cox models.
svygofchisq

Test of fit to known probabilities
svyfactanal

Factor analysis in complex surveys (experimental).
svydesign

Survey sample analysis.
svyglm

Survey-weighted generalised linear models.
svycralpha

Cronbach's alpha
svyqqplot

Quantile-quantile plots for survey data
svyivreg

Two-stage least-squares for instrumental variable regression
svyhist

Histograms and boxplots
svypredmeans

Predictive marginal means
svyprcomp

Sampling-weighted principal component analysis
svyloglin

Loglinear models
svylogrank

Compare survival distributions
newsvyquantile

Quantiles under complex sampling.
svynls

Probability-weighted nonlinear least squares
svymle

Maximum pseudolikelihood estimation in complex surveys
svyttest

Design-based t-test
trimWeights

Trim sampling weights
svysmooth

Scatterplot smoothing and density estimation
svyrecvar

Variance estimation for multistage surveys
twophase

Two-phase designs
update.survey.design

Add variables to a survey design
yrbs

One variable from the Youth Risk Behaviors Survey, 2015.
svysurvreg

Fit accelerated failure models to survey data
svyolr

Proportional odds and related models
svystandardize

Direct standardization within domains
weights.survey.design

Survey design weights
svyplot

Plots for survey data
withReplicates

Compute variances by replicate weighting
svyratio

Ratio estimation
svyranktest

Design-based rank tests
withPV.survey.design

Analyse plausible values in surveys
with.svyimputationList

Analyse multiple imputations