invert_bt: Perform Bayesian inversion using BayesianTools package

Description Usage Arguments Details

View source: R/bayestools.R

Description

Use samplers from the BayesianTools package to fit models to data. Like invert.auto, this will continue to run until convergence is achieved (based on Gelman diagnostic) and the result has enough samples (as specified by the user; see Details).

Usage

1
invert_bt(observed, model, prior, custom_settings = list(), loglike = NULL)

Arguments

observed

Vector of observations. Ignored if loglike is not NULL.

model

Function called by log-likelihood. Must be function(params) and return a vector equal to length(observed) or nrow(observed). Ignored if loglike is not NULL.

prior

BayesianTools prior object.

custom_settings

Nested settings list. See Details.

loglike

Custom log likelihood function. If NULL, use rtm_loglike with provided observed and model.

Details

custom_settings is a list of lists, containing the following:

See the BayesianTools sampler documentation for what can go in the BayesianTools settings lists.


ashiklom/PEcAnRTM documentation built on March 7, 2020, 7:46 a.m.