calculate_likelihood: Calculate likelihood

View source: R/bayesian_helpers.R

calculate_likelihoodR Documentation

Calculate likelihood

Description

Calculate likelihood

Usage

calculate_likelihood(
  .samples,
  .func = .func_,
  .args = .args_,
  .l_targets = .l_targets_
)

Arguments

.samples

A table or vector of sampled parameter values

.func

A function defining the model to be calibrated

.args

A list of arguments to be passed to .func

.l_targets

A list containing a vector of targets' names, a vector of targets' weights, a vector of targets' distributions, and a table for each target that contains the values (column name 'value') and standard errors (column name 'sd') of the corresponding target.


W-Mohammed/calibrater documentation built on Oct. 14, 2023, 1:57 a.m.