Title: | Bayesian Parameter Estimation and Forecasting for Epidemiological Models |
---|---|
Description: | Methods for Bayesian parameter estimation and forecasting in epidemiological models. Functions enable model fitting using Bayesian methods and generate forecasts with uncertainty quantification. Implements approaches described in <doi:10.48550/arXiv.2411.05371> and <doi:10.1002/sim.9164>. |
Authors: | Hamed Karami [aut], Amanda Bleichrodt [aut], Ruiyan Luo [aut], Gerardo Chowell [aut, cre] |
Maintainer: | Gerardo Chowell <[email protected]> |
License: | CC0 |
Version: | 1.0.0 |
Built: | 2024-12-06 04:43:10 UTC |
Source: | https://github.com/cran/BayesianFitForecast |
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 )
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.
# 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.
This function runs an MCMC analysis based on the specified option file, sourcing auxiliary scripts, and executing the analysis.
Run_MCMC(option_file, excel_file = NULL, output_path = NULL)
Run_MCMC(option_file, excel_file = NULL, output_path = NULL)
option_file |
The name of the option file (e.g., "option1.R") located in the current working directory. |
excel_file |
The path to the Excel file containing the data. |
output_path |
Directory where the output will be saved. If |
None. The function executes and saves results directly.
# Get path to the example option file included with package option_file <- system.file("extdata", "option.R", package = "BayesianFitForecast") # Specify the path to the Excel file you want to analyze excel_file <- system.file("extdata", "SanFrancisco.xlsx", package = "BayesianFitForecast") # Modify this path accordingly # Run the MCMC analysis Run_MCMC(option_file = option_file, excel_file = excel_file, output_path = NULL)
# Get path to the example option file included with package option_file <- system.file("extdata", "option.R", package = "BayesianFitForecast") # Specify the path to the Excel file you want to analyze excel_file <- system.file("extdata", "SanFrancisco.xlsx", package = "BayesianFitForecast") # Modify this path accordingly # Run the MCMC analysis Run_MCMC(option_file = option_file, excel_file = excel_file, output_path = NULL)