Run_analyzeResults {BayesianFitForecast}R Documentation

Run Analyze Results with Specified Data and Options

Description

This function performs an analysis based on the specified data file, option_file, Excel file, and it saves the results in the output_path. It loads auxiliary data, executes analysis steps, and saves the results.

Usage

Run_analyzeResults(
  data_file_location,
  option_file,
  excel_file,
  output_path = NULL
)

Arguments

data_file_location

The location of the data file which is generated after Run_MCMC.

option_file

The name of the option file (e.g., "option1.R") located in the current working directory.

excel_file

The path to an Excel file containing additional data. This parameter is required and must be a valid path to an existing file.

output_path

Directory where the output will be saved. If NULL, a temporary directory will be created and used.

Value

None. The function executes the analysis and saves the results to the specified output_path.

Examples

# Define file paths
data_file <- system.file("extdata", 
                          package = "BayesianFitForecast")
option_file <- system.file("extdata", "option.R", 
                          package = "BayesianFitForecast")
                                                     
excel_file <- system.file("extdata", "SanFrancisco.xlsx", 
                          package = "BayesianFitForecast")  
# Run the analysis

Run_analyzeResults(
  data_file = data_file, 
  option_file = option_file, 
  excel_file = excel_file, 
  output_path = NULL)


# Results are saved in the specified directory or temporary directory if none is provided.

[Package BayesianFitForecast version 1.0.0 Index]