# survey v3.36

0

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 | |

HR | Wrappers for specifying PPS designs | |

pchisqsum | Distribution of quadratic forms | |

anova.svyglm | Model comparison for glms. | |

svrVar | Compute variance from replicates | |

postStratify | Post-stratify a survey | |

barplot.svystat | Barplots and Dotplots | |

svrepdesign | Specify survey design with replicate weights | |

ftable.svystat | Lay out tables of survey statistics | |

svyby | Survey statistics on subsets | |

svycdf | Cumulative Distribution Function | |

withPV.survey.design | Analyse plausible values in surveys | |

hadamard | Hadamard matrices | |

api | Student performance in California schools | |

withReplicates | Compute variances by replicate weighting | |

estweights | Estimated weights for missing data | |

fpc | Small survey example | |

psrsq | Pseudo-Rsquareds | |

rake | Raking of replicate weight design | |

svycontrast | Linear and nonlinearconstrasts of survey statistics | |

hospital | Sample of obstetric hospitals | |

make.calfun | Calibration metrics | |

bootweights | Compute survey bootstrap weights | |

brrweights | Compute replicate weights | |

svycoplot | Conditioning plots of survey data | |

calibrate | Calibration (GREG) estimators | |

svyloglin | Loglinear models | |

compressWeights | Compress replicate weight matrix | |

nhanes | Cholesterol data from a US survey | |

stratsample | Take a stratified sample | |

nonresponse | Experimental: Construct non-response weights | |

regTermTest | Wald test for a term in a regression model | |

svylogrank | Compare survival distributions | |

svyplot | Plots for survey data | |

scd | Survival in cardiac arrest | |

svycoxph | Survey-weighted Cox models. | |

svyprcomp | Sampling-weighted principal component analysis | |

svycralpha | Cronbach's alpha | |

weights.survey.design | Survey design weights | |

svyglm | Survey-weighted generalised linear models. | |

svyhist | Histograms and boxplots | |

svypredmeans | Predictive marginal means | |

with.svyimputationList | Analyse multiple imputations | |

svyquantile | Quantiles for sample surveys | |

as.fpc | Package sample and population size data | |

as.svrepdesign | Convert a survey design to use replicate weights | |

dimnames.DBIsvydesign | Dimensions of survey designs | |

election | US 2004 presidential election data at state or county level | |

marginpred | Standardised predictions (predictive margins) for regression models. | |

mu284 | Two-stage sample from MU284 | |

subset.survey.design | Subset of survey | |

confint.svyglm | Confidence intervals for regression parameters | |

crowd | Household crowding | |

surveyoptions | Options for the survey package | |

svy.varcoef | Sandwich variance estimator for glms | |

surveysummary | Summary statistics for sample surveys | |

svyCprod | Computations for survey variances | |

yrbs | One variable from the Youth Risk Behaviors Survey, 2015. | |

open.DBIsvydesign | Open and close DBI connections | |

svydesign | Survey sample analysis. | |

paley | Paley-type Hadamard matrices | |

svyfactanal | Factor analysis in complex surveys (experimental). | |

svytable | Contingency tables for survey data | |

svykappa | Cohen's kappa for agreement | |

svykm | Estimate survival function. | |

svyciprop | Confidence intervals for proportions | |

svymle | Maximum pseudolikelihood estimation in complex surveys | |

svystandardize | Direct standardization within domains | |

svysurvreg | Fit accelerated failure models to survey data | |

svyranktest | Design-based rank tests | |

svyratio | Ratio estimation | |

svyolr | Proportional odds and related models | |

svyrecvar | Variance estimation for multistage surveys | |

svyttest | Design-based t-test | |

trimWeights | Trim sampling weights | |

svysmooth | Scatterplot smoothing and density estimation | |

twophase | Two-phase designs | |

update.survey.design | Add variables to a survey design | |

as.svydesign2 | Update to the new survey design format | |

SE | Extract standard errors | |

No Results! |

## Vignettes of survey

Name | ||

domain.Rnw | ||

epi.Rnw | ||

phase1.Rnw | ||

pps.Rnw | ||

survey.Rnw | ||

No Results! |

## Last month downloads

## Details

License | GPL-2 | GPL-3 |

URL | http://r-survey.r-forge.r-project.org/survey/ |

NeedsCompilation | no |

Packaged | 2019-04-27 01:13:02 UTC; tlumley |

Repository | CRAN |

Date/Publication | 2019-04-27 05:00:04 UTC |

suggests | CompQuadForm , DBI , foreign , hexbin , KernSmooth , MASS , parallel , quantreg , RODBC , RSQLite |

imports | graphics , lattice , minqa , mitools (>= 2.4) , numDeriv , splines , stats |

depends | grid , Matrix , methods , R (>= 3.1.0) , survival |

Contributors | Thomas Lumley |

#### Include our badge in your README

```
[![Rdoc](http://www.rdocumentation.org/badges/version/survey)](http://www.rdocumentation.org/packages/survey)
```