Package: multiverse 0.6.3

Abhraneel Sarma

multiverse: Create 'multiverse analysis' in R

Implement 'multiverse' style analyses (Steegen S., Tuerlinckx F, Gelman A., Vanpaemal, W., 2016) <doi:10.1177/1745691616658637> to show the robustness of statistical inference. 'Multiverse analysis' is a philosophy of statistical reporting where paper authors report the outcomes of many different statistical analyses in order to show how fragile or robust their findings are. The 'multiverse' package (Sarma A., Kale A., Moon M., Taback N., Chevalier F., Hullman J., Kay M., 2021) <doi:10.31219/osf.io/yfbwm> allows users to concisely and flexibly implement 'multiverse-style' analysis, which involve declaring alternate ways of performing an analysis step, in R and R Notebooks.

Authors:Abhraneel Sarma [aut, cre], Matthew Kay [aut], Michael Moon [ctb], Mark Miller [ctb], Kyle Hwang [ctb], Hadley Wickham [ctb]

multiverse_0.6.3.tar.gz
multiverse_0.6.3.zip(r-4.7)multiverse_0.6.3.zip(r-4.6)multiverse_0.6.3.zip(r-4.5)
multiverse_0.6.3.tgz(r-4.6-any)multiverse_0.6.3.tgz(r-4.5-any)
multiverse_0.6.3.tar.gz(r-4.7-any)multiverse_0.6.3.tar.gz(r-4.6-any)
multiverse_0.6.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
multiverse/json (API)
NEWS

# Install 'multiverse' in R:
install.packages('multiverse', repos = c('https://mucollective.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mucollective/multiverse/issues

Pkgdown/docs site:https://mucollective.github.io

Datasets:
  • durante - Survey to study the effect of fertility on religiosity and political attitudes
  • hurricane - Survey to study the effect of fertility on religiosity and political attitudes
  • userlogs - Userlogs
  • vis_correlation - Participants responses in the study by Harrison et al., "Ranking Visualizations of correlation according to Weber's law"

On CRAN:

Conda:

9.09 score 64 stars 1 packages 54 scripts 299 downloads 19 exports 59 dependencies

Last updated from:08f71e0c3b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK187
source / vignettesOK413
linux-release-x86_64OK190
macos-release-arm64OK190
macos-oldrel-arm64OK287
windows-develOK133
windows-releaseOK150
windows-oldrelOK155
wasm-releaseOK146

Exports:codeconditionsexecute_multiverseexecute_universeexpandexport_code_jsonexport_data_jsonexport_results_dist_jsonexport_results_jsonextract_variable_from_universeextract_variablesinsideis_multiverseis.multiverseknit_as_emarmultiverseparameterssizestyle_multiverse_code

Dependencies:abindbase64encberryFunctionsbitbit64clicliprcodetoolscollectionscpp11crayondigestdistributionaldplyrevaluatefastmapformatRfurrrfuturegenericsglobalsgluehighrhmshtmltoolsjsonliteknitrlifecyclelistenvmagrittrnumDerivparallellypillarpkgconfigprettyunitsprogresspurrrR.cacheR.methodsS3R.ooR.utilsR6readrrlangrprojrootrstudioapistringistringrstylertibbletidyrtidyselecttzdbutf8vctrsvroomwithrxfunyaml

A discussion on branches in the multiverse

Rendered frombranch.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2019-10-08

Declaring conditions in the multiverse

Rendered fromconditions.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2021-06-14

Example multiverse implementation: Effect of fertility on religiosity and political attitudes

Rendered fromexample-durante.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-20
Started: 2024-09-18

Example multiverse implementation: Female hurricanes are deadlier than male hurricanes

Rendered fromexample-hurricane.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2024-09-18

Example multiverse implementation: Re-evaluating the efficiency of physical visualizations

Rendered fromexample-frequentist.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2024-09-18

Example multiverse implementation: Recreating Adding inferential treatments to plots using Resampling and Animations using multiverse

Rendered fromexample-dance.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2024-09-18

Execution of multiverse analysis: Sequential and Parallel

Rendered fromexecution-multiverse.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2022-05-19

Exporting the output of a multiverse to JSON for Milliways, a multiverse visualisation tool

Rendered fromexport-milliways.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-20
Started: 2025-10-20

Extracting and Visualising the results of a multiverse analysis

Rendered fromvisualising-multiverse.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2021-06-14

Using the multiverse in RMarkdown: Introduction to multiverse code chunks

Rendered frommultiverse-in-rmd.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-10-22
Started: 2020-10-28

Readme and manuals

Help Manual

Help pageTopics
'Explorable Multiverse' Data Analysis and Reports in Rmultiverse-package
Define constraints for combinations of analysis paths in the multiverse%when%
Accessing contents of the multiverse object$.multiverse $<-.multiverse accessors code code.default code.multiverse conditions conditions.default conditions.multiverse expand expand.default expand.multiverse extract_variable_from_universe parameters parameters.default parameters.multiverse size size.default size.multiverse
Define multiple analysis paths for a step in the multiversebranch
Survey to study the effect of fertility on religiosity and political attitudesdurante
Execute parts of, or the entire multiverseexecute execute_multiverse execute_universe
Exporting results from a multiverse analysis to JSONexport_code_json export_data_json export_json export_results_dist_json export_results_json
Extract variables and objects from the multiverseextract_variables extract_variables.data.frame extract_variables.multiverse
Code corresponding to a single analysisget_code
Survey to study the effect of fertility on religiosity and political attitudeshurricane
Pass code into the multiverseinside
Compile a RMarkdown into an Explorable Multiverse Analysis Reportknit_as_emar
Create custom code blocks for multiverse analysismulitiverse_code_block
Create a new multiverse objectis.multiverse is_multiverse multiverse
Parse the multiverse syntax to identify branchesparse_multiverse
Accessing contents of the multiverse objectprint print.multiverse
Stylises the code of multiverse for printingstyle_multiverse_code
Userlogsuserlogs
Participants responses in the study by Harrison et al., "Ranking Visualizations of correlation according to Weber's law"vis_correlation