Description Usage Arguments Author(s) Examples
Function to plot Concavex model fit overlaid on actual points
1 2 3 | ccvx_plot_fit(ccvx.samples, placebo.adjusted = FALSE,
title = "Concavex Model Fit", xlab = "Dose", ylab = "Effect",
cred.int.width = 0.9)
|
ccvx.samples |
List containg Gibbs samples output by ccvx_fit() function |
placebo.adjusted |
Should the estimated dose-response curve be placebo adjusted? Default is FALSE |
title |
Plot title |
xlab |
Label for x-axis |
ylab |
Label for y-axis |
cred.int.width |
Specify width of credible interval for curve. This is also applied to confidence intervals of point estimates. Default is 0.9 (90%) |
Paul Manser, manser.paul@gene.com
1 2 3 4 5 | 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,2))
ccvx_plot_fit(ccvx.samples, placebo.adjusted = FALSE, ylab = "Treatment Effect")
ccvx_plot_fit(ccvx.samples, placebo.adjusted = TRUE, ylab = "Pbo-Adjusted Treatment Effect")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.