Skip to contents

Package overview

Overview of multiverse.

multiverse-package
'Explorable Multiverse' Data Analysis and Reports in R

Defining and running a multiverse analysis

Creating and adding code to the multiverse object for concise multiverse analysis

multiverse() is_multiverse() is.multiverse()
Create a new multiverse object
branch
Define multiple analysis paths for a step in the multiverse
inside()
Pass code into the multiverse
%when%
Define constraints for combinations of analysis paths in the multiverse

Interacting with the multiverse

Interact and inspect the multiverse to get an overview of the different branches / analysis combinations defined

`$`(<multiverse>) `$<-`(<multiverse>) expand() size() code() parameters() conditions() extract_variable_from_universe()
Accessing contents of the multiverse object
print(<multiverse>)
Accessing contents of the multiverse object
extract_variables()
Extract variables and objects from the multiverse
mulitiverse_code_block
Create custom code blocks for multiverse analysis

Executing the multiverse

Execute specific or the entire multiverse

execute_multiverse() execute_universe()
Execute parts of, or the entire multiverse

Exporting results

Export the results of the multiverse. Some of the functions are designed to export the code, dataset, and results in a JSON format which is compatible with Milliways, an interactive visualisation tool for multiverse analysis

export_results_json() export_results_dist_json() export_code_json() export_data_json()
Exporting results from a multiverse analysis to JSON

Multiverse internals

Internals functions for processing the multiverse

parse_multiverse()
Parse the multiverse syntax to identify branches
get_code()
Code corresponding to a single analysis
style_multiverse_code()
Stylises the code of multiverse for printing

Datasets

Datasets that have been used in previous and current examples of multiverse analysis

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