View source: R/Run_analyzeResults.R
Run_analyzeResults | 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 '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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.