Run_analyzeResults {BayesianFitForecast} | R Documentation |
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.
Run_analyzeResults(
data_file_location,
option_file,
excel_file,
output_path = NULL
)
data_file_location |
The location of the data file which is generated after |
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 |
None. The function executes the analysis and saves the results to the specified output_path
.
# 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.