survey: Analysis of Complex Survey Samples

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.

AuthorThomas Lumley
Date of publication2016-12-08 02:19:11
Maintainer"Thomas Lumley" <t.lumley@auckland.ac.nz>
LicenseGPL-2 | GPL-3
Version3.31-7
http://r-survey.r-forge.r-project.org/survey/

View on R-Forge

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.

Functions

AIC.svyglm Man page
anova.svycoxph Man page
anova.svyglm Man page
anova.svyloglin Man page
api Man page
apiclus1 Man page
apiclus2 Man page
apipop Man page
apisrs Man page
apistrat Man page
as.fpc Man page
as.matrix.repweights Man page
as.matrix.repweights_compressed Man page
as.svrepdesign Man page
as.svydesign2 Man page
as.vector.repweights_compressed Man page
barplot.svrepstat Man page
barplot.svyby Man page
barplot.svystat Man page
BIC.svyglm Man page
biplot.svyprcomp Man page
bootstratum Man page
bootweights Man page
brrweights Man page
calibrate Man page
calibrate.survey.design2 Man page
calibrate.svyrep.design Man page
calibrate.twophase Man page
cal.linear Man page
cal.logit Man page
cal.raking Man page
close.DBIsvydesign Man page
close.ODBCsvydesign Man page
coef.svrepstat Man page
coef.svyby Man page
coef.svyglm Man page
coef.svyloglin Man page
coef.svymle Man page
coef.svyratio Man page
coef.svystat Man page
compressWeights Man page
compressWeights.default Man page
compressWeights.repweights_compressed Man page
compressWeights.svyrep.design Man page
confint.svrepstat Man page
confint.svyby Man page
confint.svyglm Man page
confint.svykm Man page
confint.svyratio Man page
confint.svystat Man page
crowd Man page
cv Man page
cv.default Man page
cv.svrepratio Man page
cv.svrepstat Man page
cv.svyratio Man page
cv.svystat Man page
deff Man page
deff.default Man page
deff.svyby Man page
degf Man page
degf.survey.design2 Man page
degf.svyrep.design Man page
degf.twophase Man page
dim.DBIsvydesign Man page
dimnames.DBIsvydesign Man page
dimnames.ODBCsvydesign Man page
dimnames.repweights_compressed Man page
dimnames.survey.design Man page
dimnames.svyimputationList Man page
dimnames.svyrep.design Man page
dimnames.twophase Man page
dim.ODBCsvydesign Man page
dim.repweights_compressed Man page
dim.survey.design Man page
dim.svyimputationList Man page
dim.svyrep.design Man page
dim.twophase Man page
dotchart Man page
dotchart.svrepstat Man page
dotchart.svyby Man page
dotchart.svystat Man page
election Man page
election_insample Man page
election_jointHR Man page
election_jointprob Man page
election_pps Man page
estWeights Man page
estWeights.data.frame Man page
estWeights.twophase Man page
extractAIC.svycoxph Man page
fpc Man page
ftable.svrepstat Man page
ftable.svyby Man page
ftable.svystat Man page
grake Man page
hadamard Man page
hospital Man page
HR Man page
image.svyrep.design Man page
is.calibrated Man page
is.hadamard Man page
jk1weights Man page
jknweights Man page
joinCells Man page
lines.svykm Man page
lines.svysmooth Man page
make.calfun Man page
make.formula Man page
make.panel.svysmooth Man page
marginpred Man page
marginpred.svycoxph Man page
marginpred.svyglm Man page
marginpred.svykmlist Man page
model.frame.svycoxph Man page
model.frame.svyrep.design Man page
model.frame.twophase Man page
mrbweights Man page
mu284 Man page
multistage Man page
multistage.phase1 Man page
na.exclude.survey.design Man page
na.exclude.twophase Man page
na.fail.survey.design Man page
na.fail.twophase Man page
na.omit.survey.design Man page
na.omit.twophase Man page
neighbours Man page
nhanes Man page
nonresponse Man page
[.nonresponse Man page
onestage Man page
onestage.phase1 Man page
onestrat Man page
onestrat.phase1 Man page
open.DBIsvydesign Man page
open.ODBCsvydesign Man page
paley Man page
pchisqsum Man page
pFsum Man page
plot.svycdf Man page
plot.svykm Man page
plot.svykmlist Man page
plot.svysmooth Man page
postStratify Man page
postStratify.survey.design Man page
postStratify.svyrep.design Man page
postStratify.twophase Man page
ppsmat Man page
predict.svrepglm Man page
predict.svycoxph Man page
predict.svyglm Man page
predict.svyratio Man page
predict.svyratio_separate Man page
print.anova.svyloglin Man page
print.nonresponse Man page
print.nonresponseSubset Man page
print.regTermTest Man page
print.summary.svyrep.design Man page
print.summary.svytable Man page
print.summary.twophase Man page
print.svycdf Man page
print.svycoxph Man page
print.svymle Man page
print.svyquantile Man page
print.svyratio Man page
print.svyratio_separate Man page
print.svyrep.design Man page
print.svysmooth Man page
print.twophase Man page
quantile.svykm Man page
rake Man page
regcalibrate Man page
regcalibrate.survey.design2 Man page
regcalibrate.svyrep.design Man page
regTermTest Man page
[.repweights_compressed Man page
residuals.svrepglm Man page
residuals.svyglm Man page
scd Man page
SE Man page
SE.default Man page
SE.svrepstat Man page
SE.svyby Man page
SE.svyquantile Man page
SE.svyratio Man page
sparseCells Man page
stratsample Man page
subbootweights Man page
subset.survey.design Man page
subset.svyimputationList Man page
subset.svyrep.design Man page
subset.twophase Man page
summary.svrepglm Man page
summary.svreptable Man page
summary.svycoxph Man page
summary.svyglm Man page
summary.svymle Man page
summary.svyrep.design Man page
summary.svytable Man page
summary.twophase Man page
survey.adjust.domain.lonely Man page
[.survey.design Man page
survey.drop.replicates Man page
survey.lonely.psu Man page
survey.multicore Man page
surveyoptions Man page
survey.replicates.mse Man page
survey.ultimate.cluster Man page
survey.want.obsolete Man page
survfit.svycoxph Man page
svrepdesign Man page
svrepdesign.character Man page
svrepdesign.default Man page
svrepdesign.imputationList Man page
svreptable Man page
svrVar Man page
svyboxplot Man page
svyby Man page
svyby.default Man page
svycdf Man page
.svycheck Man page
svychisq Man page
svychisq.survey.design Man page
svychisq.svyrep.design Man page
svyciprop Man page
svycontrast Man page
svycoplot Man page
svycoxph Man page
svycoxph.survey.design Man page
svycoxph.survey.design2 Man page
svycoxph.svyrep.design Man page
svyCprod Man page
svydesign Man page
svydesign.character Man page
svydesign.default Man page
svydesign.imputationList Man page
svyfactanal Man page
svyglm Man page
svyglm.survey.design Man page
svyglm.svyrep.design Man page
svyhist Man page
svykappa Man page
svykm Man page
svyloglin Man page
svylogrank Man page
svymean Man page
svymean.survey.design Man page
svymean.survey.design2 Man page
svymean.svyrep.design Man page
svymean.twophase Man page
svymle Man page
svyolr Man page
svyolr.survey.design2 Man page
svyolr.svyrep.design Man page
svyplot Man page
svyplot.default Man page
svyprcomp Man page
svypredmeans Man page
svyquantile Man page
svyquantile.survey.design Man page
svyquantile.svyrep.design Man page
svyranktest Man page
svyratio Man page
svyratio.survey.design Man page
svyratio.survey.design2 Man page
svyratio.svyrep.design Man page
svyratio.twophase Man page
svyrecvar Man page
svyrecvar.phase1 Man page
[.svyrep.design Man page
svysmooth Man page
svysmooth.default Man page
svystandardize Man page
svytable Man page
svytable.survey.design Man page
svytable.svyrep.design Man page
svytotal Man page
svytotal.survey.design Man page
svytotal.survey.design2 Man page
svytotal.svyrep.design Man page
svytotal.twophase Man page
svyttest Man page
svyvar Man page
svy.varcoef Man page
svyvar.survey.design Man page
svyvar.svyrep.design Man page
trimWeights Man page
trimWeights.survey.design2 Man page
trimWeights.svyrep.design Man page
twophase Man page
[.twophase Man page
twophase2var Man page
twophasevar Man page
unwtd.count Man page
update.DBIsvydesign Man page
update.ODBCsvydesign Man page
update.survey.design Man page
update.svyloglin Man page
update.svyrep.design Man page
update.twophase Man page
vcov.svrepstat Man page
vcov.svyglm Man page
vcov.svymle Man page
vcov.svystat Man page
weights.nonresponse Man page
weights.survey.design Man page
weights.survey_fpc Man page
weights.svyrep.design Man page
withReplicates Man page
withReplicates.svrepstat Man page
withReplicates.svrepvar Man page
withReplicates.svyrep.design Man page
with.svyimputationList Man page
yrbs Man page

Files

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.