posteriorThetaDensity: Density of the posterior distribution of model parameters at...

View source: R/posteriorThetaDensity.R

posteriorThetaDensityR Documentation

Density of the posterior distribution of model parameters at a given value of those model parameters

Description

Density of the posterior distribution of model parameters at a given value of those model parameters

Usage

posteriorThetaDensity(theta, ptmap)

Arguments

theta

specific values for the model parameters; this needs to be of length dim(as.matrix(cbind(1,D)))[2]

ptmap

a posteriorThetaMAP() object

Value

the density of the posterior distribution of the model parameter estimates at the specific theta values.

Examples

df <- dgenRbinom()
postThetaMAP <- posteriorThetaMAP(df$Y, df$D, sigma0=1, lambda=1)
theta <- c(0.3,0.9)
posteriorThetaDensity(theta, postThetaMAP)

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