export_cinema
export_cinema.RdPrepare project into a JSON format that CINeMA can read.
Arguments
- configured_data
list. Input dataset created by
setup_configure()orsetup_exclude()- gemtc_results
Output from
gemtc::mtc.run(), as returned in themtcResultslist element frombayes_model(). If this parameter isNULLthen the frequentist analysis results found in 'contributions' are used. If it is notNULLthen the Bayesian analysis results contained in this parameter are used. Defaults toNULL.- logger
Stores all notification messages to be displayed in the Log Window. Insert the logger reactive list here for running in shiny, otherwise leave the default
NULL
Value
JSON string with the following structure: A named list of lists. The top level list contains items:
"project" Information for CINeMA project
"CM" Contribution matrices
"contributionMatrices" output from
.PrepareAnalysisForCinema()
"format" Data format. Always "long"
"type" Outcome type. Either "binary" or "continuous"
"Studies" Study data
"long" Output from
.PrepareDataForCinema()
Examples
configured_data_path <- system.file("extdata", "configured_data.Rds", package = "metainsight")
configured_data <- readRDS(configured_data_path)
cinema_project <- export_cinema(configured_data = configured_data)
writeLines(cinema_project, tempfile(fileext = ".json"))