survey v3.34


Monthly downloads



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.

Functions in survey

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

Vignettes of survey

No Results!

Last month downloads


License GPL-2 | GPL-3
NeedsCompilation no
Packaged 2018-10-12 02:48:35 UTC; tlum005
Repository CRAN
Date/Publication 2018-10-12 04:40:03 UTC

Include our badge in your README