Description Usage Arguments Examples
This function plots posterior distributions for the 3 parameters of the Concavex model
1 2 | ccvx_hist_post(ccvx.samples, params = c("theta_0", "theta_1", "lambda"),
cred.int.width = 0.9)
|
ccvx.samples |
List containg Gibbs samples output by ccvx_fit() function |
params |
Specify for which model parameters to show posterior densities. Allowable values are "theta_0", "theta_1", and "lambda" |
cred.int.width |
Specify width of credible interval for posteriors. Default is .9 (90% credible interval) |
1 2 3 4 | ccvx.mod <- ccvx_build_jags()
ccvx.samples <- ccvx_fit(ccvx.mod, doses = 0:4, mu.hat = c(1, 20, 50, 60, 65), std.err = rep(10, 5))
par(mfrow=c(1, 3))
ccvx_hist_post(ccvx.samples, params = c("theta_0", "theta_1", "lambda"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.