posteriorTauDensity: Density of the posterior distribution of model parameters...

View source: R/posteriorTauDensity.R

posteriorTauDensityR Documentation

Density of the posterior distribution of model parameters when the intercept is fixed at its MAP value and the treatment effect is given

Description

Density of the posterior distribution of model parameters when the intercept is fixed at its MAP value and the treatment effect is given

Usage

posteriorTauDensity(tau, ptmap)

Arguments

tau

a specific value for the treatment effect parameter

ptmap

a posteriorTheta() object

Value

of the posterior distribution of model parameters when the intercept is fixed at its MAP value and the treatment effect is given

Examples

df <- dgenRbinom()
postThetaMAP <- posteriorThetaMAP(df$Y, df$D, sigma0=1, lambda=1)
tau <- 0.1
posteriorTauDensity(tau, postThetaMAP)

johnsontr/entmax documentation built on July 2, 2022, 9:23 p.m.