srvyr: 'dplyr'-Like Syntax for Summary Statistics of Survey Data

Share:

Use piping, verbs like 'group_by' and 'summarize', and other 'dplyr' inspired syntactic style when calculating summary statistics on survey data using functions from the 'survey' package.

Author
Greg Freedman Ellis [aut, cre]
Date of publication
2016-09-26 08:03:45
Maintainer
Greg Freedman Ellis <greg.freedman@gmail.com>
License
GPL-2 | GPL-3
Version
0.2.0
URLs

View on CRAN

Man pages

as_survey
Create a tbl_svy from a data.frame
as_survey_design
Create a tbl_svy survey object using sampling design
as_survey_rep
Create a tbl_svy survey object using replicate weights
as_survey_twophase
Create a tbl_svy survey object using two phase design
as_tibble
Coerce survey variables to a data frame (tibble)
cascade
Summarise multiple values into cascading groups
dplyr_single
Single table verbs from dplyr
group_by
Group a (survey) dataset by one or more variables.
groups
Get/set the grouping variables for tbl.
mutate_each
Summarise and mutate multiple columns.
pipe
Pipe operator
srvyr
svrvyr: A package for 'dplyr'-Like Syntax for Summary...
summarise
Summarise multiple values to a single value.
survey_mean
Calculate the mean and its variation using survey methods
survey_quantile
Calculate the quantile and its variation using survey methods
survey_ratio
Calculate the ratio and its variation using survey methods
survey_total
Calculate the total and its variation using survey methods
tbl_svy
tbl_svy object.
tbl_vars
List variables produced by a tbl.
unweighted
Calculate the an unweighted summary statistic from a survey

Files in this package

srvyr
srvyr/inst
srvyr/inst/doc
srvyr/inst/doc/srvyr-vs-survey.R
srvyr/inst/doc/srvyr-database.R
srvyr/inst/doc/srvyr-database.Rmd
srvyr/inst/doc/srvyr-database.html
srvyr/inst/doc/srvyr-vs-survey.Rmd
srvyr/inst/doc/srvyr-vs-survey.html
srvyr/tests
srvyr/tests/testthat.R
srvyr/tests/testthat
srvyr/tests/testthat/test_as_survey_design.r
srvyr/tests/testthat/test_level.R
srvyr/tests/testthat/test_basic_example.r
srvyr/tests/testthat/test_as_survey_twophase.r
srvyr/tests/testthat/test_as_survey_rep.r
srvyr/tests/testthat/test_survey_statistics_basic.r
srvyr/tests/testthat/test_as_survey.r
srvyr/tests/testthat/test_survey_statistics.r
srvyr/tests/testthat/test_cascade.r
srvyr/tests/testthat/test_survey_mean_factor.r
srvyr/tests/testthat/test_survey_proportion.R
srvyr/tests/testthat/test_database.R
srvyr/NAMESPACE
srvyr/NEWS.md
srvyr/R
srvyr/R/srvyr.r
srvyr/R/survey_statistics.r
srvyr/R/group-by.r
srvyr/R/as_survey_design.r
srvyr/R/cascade.r
srvyr/R/survey_vars.r
srvyr/R/summarise.r
srvyr/R/utils.r
srvyr/R/subset_svy_vars.R
srvyr/R/as_survey_rep.r
srvyr/R/manip.r
srvyr/R/as_survey.r
srvyr/R/utils-db.R
srvyr/R/tbl-svy.r
srvyr/R/as_survey_twophase.r
srvyr/vignettes
srvyr/vignettes/srvyr-database.Rmd
srvyr/vignettes/srvyr-vs-survey.Rmd
srvyr/vignettes/acs_m.RData
srvyr/vignettes/ignore
srvyr/vignettes/ignore/database.R
srvyr/vignettes/ignore/srvyr-database-speed.Rmd
srvyr/vignettes/ignore/my_db.sqlite3
srvyr/vignettes/ignore/srvyr_speed.Rmd
srvyr/vignettes/save_acs_data.R
srvyr/README.md
srvyr/MD5
srvyr/build
srvyr/build/vignette.rds
srvyr/DESCRIPTION
srvyr/man
srvyr/man/dplyr_single.Rd
srvyr/man/survey_total.Rd
srvyr/man/group_by.Rd
srvyr/man/pipe.Rd
srvyr/man/as_survey_twophase.Rd
srvyr/man/as_survey.Rd
srvyr/man/survey_mean.Rd
srvyr/man/as_tibble.Rd
srvyr/man/as_survey_design.Rd
srvyr/man/unweighted.Rd
srvyr/man/survey_quantile.Rd
srvyr/man/groups.Rd
srvyr/man/srvyr.Rd
srvyr/man/tbl_vars.Rd
srvyr/man/as_survey_rep.Rd
srvyr/man/mutate_each.Rd
srvyr/man/survey_ratio.Rd
srvyr/man/cascade.Rd
srvyr/man/summarise.Rd
srvyr/man/tbl_svy.Rd