Learn R Programming

bivarhr (version 0.1.5)

export_results: Export Analysis Results

Description

Exports analysis results to Excel and/or CSV format.

Usage

export_results(results, output_dir, format = "xlsx", verbose = TRUE)

Value

Invisible path to output directory.

Arguments

results

Named list containing analysis results. Expected components include: hurdle, te, te_by_type (list with counts/rates/binary), placebo, tvarstar, varx, eba, dbn_arcs, hmm, sensemakr_I, sensemakr_C, oos, ate.

output_dir

Directory path for output files. Created if it does not exist.

format

Character; output format. One of "xlsx", "csv", or "both".

verbose

Logical; if TRUE, print progress messages.

Examples

Run this code
# \donttest{
results <- list(
  hurdle = data.frame(model = "test", elpd = -100),
  te = data.frame(dir = "I->C", stat = 0.5, p_value = 0.01)
)
export_results(results, tempdir(), format = "both")
# }

Run the code above in your browser using DataLab