calc_post: Compute the log-likelihood and log-posteriors for a set of...

Description Usage Arguments Value

View source: R/bayesian.R

Description

The log-posterior is just the sum over the pointwise likelihoods, plus the prior for the given parameter set.

Usage

1
calc_post(aScenarioInfo, obs, model, lpdf, lprior, varlvls = seq(0.1, 1, 0.1))

Arguments

aScenarioInfo

ScenarioInfo structure for the scenario

obs

Table of observational data (q.v. add_parameter_data)

model

Table of model results for the scenario.

lpdf

Log probability density function (q.v. get_lpdf)

lprior

Log prior function (q.v. calc_prior)

varlvls

Variance levels to run (see description in calc_loglikelihood).

Value

Modified ScenarioInfo with pointwise likelihood and model posterior tables.


JGCRI/gcamland documentation built on Oct. 6, 2020, 5:30 p.m.