survey: Analysis of Complex Survey Samples

Share:

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. Principal components, factor analysis.

Author
Thomas Lumley
Date of publication
2016-12-01 21:19:54
Maintainer
"Thomas Lumley" <t.lumley@auckland.ac.nz>
License
GPL-2 | GPL-3
Version
3.31-5
URLs

View on CRAN

Man pages

anova.svyglm
Model comparison for glms.
api
Student performance in California schools
as.fpc
Package sample and population size data
as.svrepdesign
Convert a survey design to use replicate weights
as.svydesign2
Update to the new survey design format
barplot.svystat
Barplots and Dotplots
bootweights
Compute survey bootstrap weights
brrweights
Compute replicate weights
calibrate
Calibration (GREG) estimators
compressWeights
Compress replicate weight matrix
confint.svyglm
Confidence intervals for regression parameters
crowd
Household crowding
dimnames.DBIsvydesign
Dimensions of survey designs
election
US 2004 presidential election data at state or county level
estweights
Estimated weights for missing data
fpc
Small survey example
ftable.svystat
Lay out tables of survey statistics
hadamard
Hadamard matrices
hospital
Sample of obstetric hospitals
HR
Wrappers for specifying PPS designs
make.calfun
Calibration metrics
marginpred
Standardised predictions (predictive margins) for regression...
mu284
Two-stage sample from MU284
nhanes
Cholesterol data from a US survey
nonresponse
Experimental: Construct non-response weights
open.DBIsvydesign
Open and close DBI connections
paley
Paley-type Hadamard matrices
pchisqsum
Distribution of quadratic forms
postStratify
Post-stratify a survey
rake
Raking of replicate weight design
regTermTest
Wald test for a term in a regression model
scd
Survival in cardiac arrest
SE
Extract standard errors
stratsample
Take a stratified sample
subset.survey.design
Subset of survey
surveyoptions
Options for the survey package
surveysummary
Summary statistics for sample surveys
svrepdesign
Specify survey design with replicate weights
svrVar
Compute variance from replicates
svyby
Survey statistics on subsets
svycdf
Cumulative Distribution Function
svychisq
Contingency tables for survey data
svyciprop
Confidence intervals for proportions
svycontrast
Linear and nonlinearconstrasts of survey statistics
svycoplot
Conditioning plots of survey data
svycoxph
Survey-weighted Cox models.
svyCprod
Computations for survey variances
svydesign
Survey sample analysis.
svyfactanal
Factor analysis in complex surveys (experimental).
svyglm
Survey-weighted generalised linear models.
svyhist
Histograms and boxplots
svykappa
Cohen's kappa for agreement
svykm
Estimate survival function.
svyloglin
Loglinear models
svylogrank
Compare survival distributions
svymle
Maximum pseudolikelihood estimation in complex surveys
svyolr
Proportional odds and related models
svyplot
Plots for survey data
svyprcomp
Sampling-weighted principal component analysis
svypredmeans
Predictive marginal means
svyquantile
Quantiles for sample surveys
svyranktest
Design-based rank tests
svyratio
Ratio estimation
svyrecvar
Variance estimation for multistage surveys
svysmooth
Scatterplot smoothing and density estimation
svystandardize
Direct standardization within domains
svyttest
Design-based t-test
svy.varcoef
Sandwich variance estimator for glms
trimWeights
Trim sampling weights
twophase
Two-phase designs
update.survey.design
Add variables to a survey design
weights.survey.design
Survey design weights
withReplicates
Compute variances by replicate weighting
with.svyimputationList
Analyse multiple imputations
yrbs
One variable from the Youth Risk Behaviors Survey, 2015.

Files in this package

survey
survey/TODO
survey/inst
survey/inst/COPYING
survey/inst/BUGS
survey/inst/CITATION
survey/inst/porting.to.S
survey/inst/NEWS
survey/inst/disclaimer
survey/inst/ucla-examples.pdf
survey/inst/doc
survey/inst/doc/pps.R
survey/inst/doc/survey.pdf
survey/inst/doc/nwts.rda
survey/inst/doc/epi.R
survey/inst/doc/pps.pdf
survey/inst/doc/nwtco-subcohort.rda
survey/inst/doc/phase1.Rnw
survey/inst/doc/survey.Rnw
survey/inst/doc/pps.Rnw
survey/inst/doc/epi.pdf
survey/inst/doc/phase1.pdf
survey/inst/doc/phase1.R
survey/inst/doc/domain.Rnw
survey/inst/doc/domain.R
survey/inst/doc/survey.R
survey/inst/doc/domain.pdf
survey/inst/doc/epi.Rnw
survey/inst/twostage.pdf
survey/inst/api.db
survey/tests
survey/tests/fpc.Rout.save
survey/tests/badcal.R
survey/tests/multistage.R
survey/tests/kalton.R
survey/tests/deff.Rout.save
survey/tests/quantile.R
survey/tests/quantile.Rout.save
survey/tests/pps.R
survey/tests/badcal.Rout.save
survey/tests/check.R
survey/tests/raowuboot.R
survey/tests/nwts.rda
survey/tests/DBIcheck.Rout.save
survey/tests/scoping.Rout.save
survey/tests/survcurve.Rout.save
survey/tests/nwts.Rout.save
survey/tests/bycovmat.R
survey/tests/raowuboot.Rout.save
survey/tests/nwtco-subcohort.rda
survey/tests/deff.R
survey/tests/nwts-cch.R
survey/tests/rakecheck.Rout.save
survey/tests/nwts.R
survey/tests/lonely.psu.R
survey/tests/multistage.Rout.save
survey/tests/lonely.psu.Rout.save
survey/tests/check.Rout.save
survey/tests/domain.Rout.save
survey/tests/pps.Rout.save
survey/tests/README
survey/tests/rakecheck.R
survey/tests/domain.R
survey/tests/api.R
survey/tests/nwts-cch.Rout.save
survey/tests/bycovmat.Rout.save
survey/tests/regpredict.Rout.save
survey/tests/fpc.R
survey/tests/api.Rout.save
survey/tests/twophase.R
survey/tests/DBIcheck.R
survey/tests/twophase.Rout.save
survey/tests/regpredict.R
survey/tests/survcurve.R
survey/tests/caleg.Rout.save
survey/tests/kalton.Rout.save
survey/tests/caleg.R
survey/tests/scoping.R
survey/NAMESPACE
survey/data
survey/data/yrbs.rda
survey/data/nhanes.rda
survey/data/scd.rda
survey/data/fpc.rda
survey/data/api.rda
survey/data/election.rda
survey/data/mu284.rda
survey/data/crowd.rda
survey/data/hospital.rda
survey/R
survey/R/ht.R
survey/R/olr.R
survey/R/multistage.R
survey/R/odbc.R
survey/R/weightconstruction.R
survey/R/multivariate.R
survey/R/dbiupdate.R
survey/R/regtest.R
survey/R/bootstrap.R
survey/R/loglin.R
survey/R/svykappa.R
survey/R/pps.R
survey/R/pFsum.R
survey/R/svysmooth.R
survey/R/surveychisq.R
survey/R/anova.svyglm.R
survey/R/surveyrep.R
survey/R/count.R
survey/R/chisqsum.R
survey/R/mse.R
survey/R/sysdata.rda
survey/R/svyttest.R
survey/R/svycdf.R
survey/R/svymi.R
survey/R/paley.R
survey/R/surveygraph.R
survey/R/grake.R
survey/R/mrb.R
survey/R/DBI.R
survey/R/survey.R
survey/R/logrank.R
survey/R/confint.R
survey/R/stratsample.R
survey/R/svyhist.R
survey/R/twophase.R
survey/R/transform.R
survey/R/greg.R
survey/R/ftable.svystat.R
survey/R/svykm.R
survey/R/svyranktest.R
survey/R/margins.R
survey/R/twophase2.R
survey/R/stdize.R
survey/R/compressweights.R
survey/R/svypredmeans.R
survey/R/surveyby.R
survey/vignettes
survey/vignettes/phase1.Rnw
survey/vignettes/survey.Rnw
survey/vignettes/pps.Rnw
survey/vignettes/domain.Rnw
survey/vignettes/epi.Rnw
survey/MD5
survey/build
survey/build/vignette.rds
survey/DESCRIPTION
survey/THANKS
survey/man
survey/man/svycontrast.Rd
survey/man/paley.Rd
survey/man/ftable.svystat.Rd
survey/man/as.fpc.Rd
survey/man/twophase.Rd
survey/man/svyhist.Rd
survey/man/update.survey.design.Rd
survey/man/svyglm.Rd
survey/man/svyquantile.Rd
survey/man/rake.Rd
survey/man/svy.varcoef.Rd
survey/man/svyplot.Rd
survey/man/mu284.Rd
survey/man/trimWeights.Rd
survey/man/svycdf.Rd
survey/man/fpc.Rd
survey/man/dimnames.DBIsvydesign.Rd
survey/man/api.Rd
survey/man/pchisqsum.Rd
survey/man/svyratio.Rd
survey/man/svyby.Rd
survey/man/svychisq.Rd
survey/man/open.DBIsvydesign.Rd
survey/man/surveysummary.Rd
survey/man/svyCprod.Rd
survey/man/anova.svyglm.Rd
survey/man/marginpred.Rd
survey/man/with.svyimputationList.Rd
survey/man/svykm.Rd
survey/man/svyloglin.Rd
survey/man/withReplicates.Rd
survey/man/svypredmeans.Rd
survey/man/hadamard.Rd
survey/man/svymle.Rd
survey/man/barplot.svystat.Rd
survey/man/as.svydesign2.Rd
survey/man/regTermTest.Rd
survey/man/HR.Rd
survey/man/hospital.Rd
survey/man/svyttest.Rd
survey/man/make.calfun.Rd
survey/man/nhanes.Rd
survey/man/svycoplot.Rd
survey/man/yrbs.Rd
survey/man/stratsample.Rd
survey/man/postStratify.Rd
survey/man/svyolr.Rd
survey/man/surveyoptions.Rd
survey/man/svystandardize.Rd
survey/man/crowd.Rd
survey/man/svycoxph.Rd
survey/man/confint.svyglm.Rd
survey/man/SE.Rd
survey/man/svykappa.Rd
survey/man/brrweights.Rd
survey/man/svyranktest.Rd
survey/man/svyfactanal.Rd
survey/man/nonresponse.Rd
survey/man/bootweights.Rd
survey/man/election.Rd
survey/man/svysmooth.Rd
survey/man/svyprcomp.Rd
survey/man/svrepdesign.Rd
survey/man/svyrecvar.Rd
survey/man/svyciprop.Rd
survey/man/estweights.Rd
survey/man/svrVar.Rd
survey/man/scd.Rd
survey/man/as.svrepdesign.Rd
survey/man/svydesign.Rd
survey/man/svylogrank.Rd
survey/man/weights.survey.design.Rd
survey/man/compressWeights.Rd
survey/man/subset.survey.design.Rd
survey/man/calibrate.Rd
survey/INDEX