denBoth: denBoth

Description Usage Arguments Author(s) Examples

Description

Example of using two different logDensity functions: comparison of combining denSparse and denRich into one function.

Usage

1
2
3
4
denBoth(theta, twTwoDenEx, weights = c(1, 1, 1), theta0 = twTwoDenEx$thetaTrue, 
    thetaPrior = NULL, invCovarTheta = NULL, modTwoDenExCache = NULL, 
    sdSparse = twTwoDenEx$sdObs$y1, sdRich = twTwoDenEx$sdObs$y2, 
    ...)

Arguments

theta
twTwoDenEx
weights
theta0
thetaPrior

the prior estimate of the parameters

invCovarTheta

the inverse of the Covariance of the prior parameter estimates

modTwoDenExCache

environment to cache results of model prediction for given theta

sdSparse

standard deviation of sparse observations

sdRich

standard deviation of rich observations

...

Author(s)

Thomas Wutzler

Examples

1
2
3
data(twTwoDenEx1)
denBoth(twTwoDenEx1$thetaTrue, twTwoDenEx1)
denBoth(twTwoDenEx1$thetaTrue, twTwoDenEx1, thresholdCovar = 0.3)

twDEMC documentation built on May 2, 2019, 5:38 p.m.