Package: srvyr 1.3.0.9000
srvyr: 'dplyr'-Like Syntax for Summary Statistics of Survey Data
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.
Authors:
srvyr_1.3.0.9000.tar.gz
srvyr_1.3.0.9000.zip(r-4.5)srvyr_1.3.0.9000.zip(r-4.4)srvyr_1.3.0.9000.zip(r-4.3)
srvyr_1.3.0.9000.tgz(r-4.4-any)srvyr_1.3.0.9000.tgz(r-4.3-any)
srvyr_1.3.0.9000.tar.gz(r-4.5-noble)srvyr_1.3.0.9000.tar.gz(r-4.4-noble)
srvyr_1.3.0.9000.tgz(r-4.4-emscripten)srvyr_1.3.0.9000.tgz(r-4.3-emscripten)
srvyr.pdf |srvyr.html✨
srvyr/json (API)
NEWS
# Install 'srvyr' in R: |
install.packages('srvyr', repos = c('https://gergness.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/gergness/srvyr/issues
Last updated 2 months agofrom:def440cfc3. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 04 2024 |
R-4.5-win | OK | Nov 04 2024 |
R-4.5-linux | OK | Nov 04 2024 |
R-4.4-win | OK | Nov 04 2024 |
R-4.4-mac | OK | Nov 04 2024 |
R-4.3-win | OK | Nov 04 2024 |
R-4.3-mac | OK | Nov 04 2024 |
Exports:%>%acrossall_varsanti_joinany_varsas_srvyr_result_dfas_surveyas_survey_as_survey_designas_survey_design_as_survey_repas_survey_rep_as_survey_twophaseas_survey_twophase_as_tibblec_acrosscascadecascade_collectcomputecur_columncur_datacur_groupcur_group_idcur_svycur_svy_fullcur_svy_wtscurrent_svydrop_naenexprenquoexprexprsfilterfilter_filter_allfilter_atfilter_iffunsfuns_get_var_estgroup_bygroup_by_group_by_allgroup_by_atgroup_by_ifgroup_datagroup_indicesgroup_keysgroup_mapgroup_map_dfrgroup_modifygroup_nestgroup_rowsgroup_sizegroup_splitgroup_trimgroup_varsgroup_walkgroupsinteractis.interactionmutatemutate_mutate_allmutate_atmutate_eachmutate_each_mutate_ifnn_groupsnest_bypullquoquo_namequosreframerenamerename_rename_allrename_atrename_ifrename_withselectselect_select_allselect_atselect_ifsemi_joinset_survey_varssummarisesummarise_summarise_allsummarise_atsummarise_eachsummarise_each_summarise_ifsummarizesummarize_summarize_allsummarize_atsummarize_eachsummarize_each_summarize_ifsurvey_corrsurvey_countsurvey_meansurvey_mediansurvey_old_mediansurvey_old_quantilesurvey_propsurvey_quantilesurvey_ratiosurvey_sdsurvey_tallysurvey_totalsurvey_varsvychisqsymsymstbl_varstransmutetransmute_ungroupuninteractunweightedvars
Dependencies:clicpp11DBIdplyrfansigenericsgluelatticelifecyclemagrittrMatrixminqamitoolsnumDerivpillarpkgconfigpurrrR6RcppRcppArmadillorlangstringistringrsurveysurvivaltibbletidyrtidyselectutf8vctrswithr
Databases in srvyr
Rendered fromsrvyr-database.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2024-07-15
Started: 2016-09-20
Extending srvyr
Rendered fromextending-srvyr.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2022-02-19
Started: 2017-10-15
srvyr compared to the survey package
Rendered fromsrvyr-vs-survey.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2024-08-23
Started: 2016-01-10
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create a tbl_svy from a data.frame | as_survey as_survey.data.frame as_survey.survey.design2 as_survey.svyrep.design as_survey.tbl_lazy as_survey.tbl_svy as_survey.twophase2 |
Create a tbl_svy survey object using sampling design | as_survey_design as_survey_design.data.frame as_survey_design.survey.design2 as_survey_design.tbl_lazy |
Create a tbl_svy survey object using replicate weights | as_survey_rep as_survey_rep.data.frame as_survey_rep.survey.design2 as_survey_rep.svyrep.design as_survey_rep.tbl_lazy as_survey_rep.tbl_svy |
Create a tbl_svy survey object using two phase design | as_survey_twophase as_survey_twophase.data.frame as_survey_twophase.twophase2 |
Coerce survey variables to a data frame (tibble) | as_tibble |
Summarise multiple values into cascading groups | cascade |
Force computation of a database query | collect compute |
Get the survey data for the current context | current_svy cur_svy cur_svy_full |
Get the full-sample weights for the current context | cur_svy_wts |
Filtering joins from dplyr | anti_join dplyr_filter_joins semi_join |
Get the variance estimates for a survey estimate | get_var_est |
Group a (survey) dataset by one or more variables. | group_by group_by_ |
Apply a function to each group | group_map.tbl_svy group_map_dfr |
Single table verbs from dplyr and tidyr | dplyr_single drop_na filter group_trim mutate pull rename rename_with select transmute |
Get/set the grouping variables for tbl. | groups group_data group_indices group_keys group_rows group_size group_vars n_groups ungroup |
Create interaction terms to group by when summarizing | interact |
Set the variables for the current survey variable | set_survey_vars |
srvyr: A package for 'dplyr'-Like Syntax for Summary Statistics of Survey Data. | srvyr-package srvyr |
srvyr interaction column | srvyr_interaction |
Deprecated SE versions of main srvyr verbs | as_survey_ as_survey_design_ as_survey_rep_ as_survey_twophase_ cascade_ filter_ funs_ mutate_ mutate_each_ rename_ select_ srvyr-se-deprecated summarise_ summarise_each_ summarize_ summarize_each_ transmute_ |
Summarise multiple values to a single value. | summarise summarize |
Manipulate multiple columns. | all_vars any_vars filter_all filter_at filter_if funs group_by_all group_by_at group_by_if mutate_all mutate_at mutate_each mutate_if rename_all rename_at rename_if select_all select_at select_if summarise_all summarise_at summarise_each summarise_if summarize_all summarize_at summarize_each summarize_if vars |
Calculate correlation and its variation using survey methods | survey_corr |
Calculate mean/proportion and its variation using survey methods | survey_mean survey_prop |
Calculate the quantile and its variation using survey methods | survey_old_median survey_old_quantile |
Calculate the quantile and its variation using survey methods | survey_median survey_quantile |
Calculate the ratio and its variation using survey methods | survey_ratio |
Count/tally survey weighted observations by group | survey_count survey_tally |
Calculate the total and its variation using survey methods | survey_total |
Calculate the population variance and its variation using survey methods | survey_sd survey_var |
Chisquared tests of association for survey data. | svychisq |
tbl_svy object. | tbl_svy |
List variables produced by a tbl. | tbl_vars |
Break interaction vectors back into component columns | is.interaction uninteract uninteract.data.frame uninteract.srvyr_interaction |
Calculate the an unweighted summary statistic from a survey | unweighted |