Learn R Programming

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

survey (version 2.0)

analysis of complex survey samples

Description

Summary statistics, generalised linear models, and general maximum pseudolikelihood estimation for stratified, cluster-sampled, unequally weighted survey samples. Variances by Taylor series linearisation or replicate weights

Copy Link

Version

Install

install.packages('survey')

Monthly Downloads

73,193

Version

2.0

License

LGPL

Maintainer

Thomas Lumley

Last Published

March 20th, 2024

Functions in survey (2.0)

svrVar

Compute variance from replicates
rake

Raking of survey design
svrepdesign

Specify survey design with replicate weights
svydesign

Survey sample analysis.
svy.varcoef

Sandwich variance estimator for glms
postStratify

Post-stratify a replicate weight survey
api

Student performance in California schools
svyglm

Survey-weighted generalised linear models.
hadamard

Hadamard matrices
subset.survey.design

Subset of survey
svyquantile

Summary statistics for sample surveys
weights.survey.design

Survey design weights
as.svrepdesign

Convert a survey design to use replicate weights
update.survey.design

Add variables to a survey design
svyCprod

Computations for survey variances
svycoxph

Survey-weighted generalised linear models.
brrweights

Compute replicate weights
withReplicates

Compute variances by replicate weighting
regTermTest

Wald test for a term in a regression model
svyratio

Ratio estimation
svymle

Maximum pseudolikelihood estimation in complex surveys
hospital

Sample of obstetric hospitals
fpc

Small survey example
scd

Survival in cardiac arrest