View source: R/Estimation_HBay.R
Import_HBayConfig | R Documentation |
Imports configuration data as specified with HBay executable. Returns NULL if configuration folder is not found
Import_HBayConfig(path)
path |
character, path to configuration folder. |
A list with the following components (see ?Hydro3_HBay for details):
y |
numeric matrix, data. |
dist |
character, distribution name. |
prior |
list of lists, prior distributions. |
SystErrorIndex |
integer vector, index of systematic errors. |
SystErrorPrior |
list of lists, prior distribution for each systematic error. |
options |
list, inference options. |
mcmcoptions |
list, MCMC options. |
year |
numeric vector, years. |
config=Import_HBayConfig('path/to/config')
if(!is.null(config)){
H3=Hydro3_HBay(y=config$y,dist=config$dist,prior=config$prior,
SystErrorIndex=config$SystErrorIndex,
SystErrorPrior=config$SystErrorPrior,
options=config$options,
mcmcoptions=config$mcmcoptions)
Hydro3_Plot(H3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.