View source: R/posteriorThetaDensity.R
posteriorThetaDensity | R Documentation |
Density of the posterior distribution of model parameters at a given value of those model parameters
posteriorThetaDensity(theta, ptmap)
theta |
specific values for the model parameters; this needs to be of length |
ptmap |
a |
the density of the posterior distribution of the model parameter estimates at the specific theta values.
df <- dgenRbinom() postThetaMAP <- posteriorThetaMAP(df$Y, df$D, sigma0=1, lambda=1) theta <- c(0.3,0.9) posteriorThetaDensity(theta, postThetaMAP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.