Import_HBayConfig: Import HBay Configuration folder

View source: R/Estimation_HBay.R

Import_HBayConfigR Documentation

Import HBay Configuration folder

Description

Imports configuration data as specified with HBay executable. Returns NULL if configuration folder is not found

Usage

Import_HBayConfig(path)

Arguments

path

character, path to configuration folder.

Value

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.

Examples

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)
}

HydroPortailStats documentation built on Sept. 12, 2024, 9:36 a.m.