Package: shinymrp 0.10.0
shinymrp: Interface for Multilevel Regression and Poststratification
Dual interfaces, graphical and programmatic, designed for intuitive applications of Multilevel Regression and Poststratification (MRP). Users can apply the method to a variety of datasets, from electronic health records to sample survey data, through an end-to-end Bayesian data analysis workflow. The package provides robust tools for data cleaning, exploratory analysis, flexible model building, and insightful result visualization. For more details, see Si et al. (2020) <https://www150.statcan.gc.ca/n1/en/pub/12-001-x/2020002/article/00003-eng.pdf?st=iF1_Fbrh> and Si (2025) <doi:10.1214/24-STS932>.
Authors:
shinymrp_0.10.0.tar.gz
shinymrp_0.10.0.zip(r-4.7-any)shinymrp_0.10.0.zip(r-4.6-any)shinymrp_0.10.0.zip(r-4.5-any)
shinymrp_0.10.0.tgz(r-4.6-any)shinymrp_0.10.0.tgz(r-4.5-any)
shinymrp_0.10.0.tar.gz(r-4.7-any)shinymrp_0.10.0.tar.gz(r-4.6-any)
shinymrp_0.10.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
shinymrp/json (API)
| # Install 'shinymrp' in R: |
| install.packages('shinymrp', repos = c('https://mrp-interface.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mrp-interface/shinymrp/issues
Pkgdown/docs site:https://mrp-interface.github.io
bayesianguimcmcmrpmultilevel-modelspoststratificationshiny
Last updated from:93a48e4fe8. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 199 | ||
| source / vignettes | OK | 515 | ||
| linux-release | OK | 158 | ||
| macos-release | OK | 229 | ||
| macos-oldrel | OK | 276 | ||
| windows-devel | OK | 121 | ||
| windows-release | OK | 113 | ||
| windows-oldrel | OK | 129 | ||
| wasm-release | OK | 147 |
Exports:example_modelexample_pstrat_dataexample_sample_datamrp_workflowMRPModelMRPWorkflowrun_app
Dependencies:abindaskpassassertthatattemptbackportsbase64encbitbit64broombsiconsbslibcachemcheckmateclicliprcodetoolscommonmarkconfigcpp11crayoncrosstalkcurldata.tabledigestdistributionaldplyrDTevaluatefarverfastmapfontawesomefsgenericsggplot2gluegolemgtablehighcharterhighrhmshtmltoolshtmlwidgetshttpuvhttr2igraphisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecycleloolubridatemagrittrMatrixmatrixStatsmemoisemimenumDerivopensslotelpatchworkpillarpkgconfigposteriorprettyunitsprogresspromisespurrrqs2quantmodR6rappdirsRColorBrewerRcppRcppParallelreadrrjsonrlangrlistrmarkdownS7sassscalesshinyshinyjsshinyWidgetssourcetoolsstringfishstringistringrsystensorAtibbletidyrtidyselecttimechangetinytexTTRtzdbutf8vctrsviridisLitevroomwaiterwithrxfunXMLxtablextsyamlzoo
Last update: 2025-12-04
Started: 2025-12-04
Last update: 2025-12-01
Started: 2025-07-18
Last update: 2025-11-24
Started: 2025-07-18
Last update: 2025-11-11
Started: 2025-09-18
Last update: 2025-10-06
Started: 2025-10-03
Last update: 2025-10-06
Started: 2025-06-26
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Return example 'MRPModel' object with estimation results. | example_model |
| Return example poststratification data | example_pstrat_data |
| Return example data | example_sample_data |
| Create a new MRPWorkflow object | mrp_workflow |
| MRPModel objects | MRPModel |
| Check if poststratification has been performed | check_estimate_exists MRPModel-method-check_estimate_exists |
| Check if model has been fitted | check_fit_exists MRPModel-method-check_fit_exists |
| Return sampling diagnostics | diagnostics MRPModel-method-diagnostics |
| Fit multilevel regression model using cmdstanr | fit MRPModel-method-fit |
| Return model formula | formula MRPModel-method-formula |
| Create inputs for leave-one-out cross-validation | log_lik MRPModel-method-log_lik |
| Return model metadata. | metadata MRPModel-method-metadata |
| Return model specification | model_spec MRPModel-method-model_spec |
| Run poststratification to generate population estimates | MRPModel-method-poststratify poststratify |
| Create input for posterior predictive check | MRPModel-method-ppc ppc |
| Save model object to file | MRPModel-method-save save |
| Return model Stan code. | MRPModel-method-stan_code stan_code |
| Return posterior summary table | MRPModel-method-summary summary |
| MRPWorkflow objects | MRPWorkflow |
| Compare models using LOO-CV | compare_models MRPWorkflow-method-compare_models |
| Create geographic covariate distribution histogram | covar_hist MRPWorkflow-method-covar_hist |
| Create a new MRPModel object | create_model MRPWorkflow-method-create_model |
| Create demographic comparison bar plots | demo_bars MRPWorkflow-method-demo_bars |
| Create a choropleth map of MRP estimates | estimate_map MRPWorkflow-method-estimate_map |
| Visualize estimates for demographic groups | estimate_plot MRPWorkflow-method-estimate_plot |
| Link sample data to ACS data | link_acs MRPWorkflow-method-link_acs |
| Load custom poststratification data | load_pstrat MRPWorkflow-method-load_pstrat |
| Visualize raw outcome measure by geography | MRPWorkflow-method-outcome_map outcome_map |
| Create summary plots of the outcome measure | MRPWorkflow-method-outcome_plot outcome_plot |
| Perform posterior predictive check | MRPWorkflow-method-pp_check pp_check |
| Preprocess sample data | MRPWorkflow-method-preprocess preprocess |
| Return preprocessed sample data | MRPWorkflow-method-preprocessed_data preprocessed_data |
| Create sample size map | MRPWorkflow-method-sample_size_map sample_size_map |
| Run the Shiny Application | run_app |
