ccvx_plot_fit: Plot Concavex model fit

Description Usage Arguments Author(s) Examples

Description

Function to plot Concavex model fit overlaid on actual points

Usage

1
2
3
ccvx_plot_fit(ccvx.samples, placebo.adjusted = FALSE,
  title = "Concavex Model Fit", xlab = "Dose", ylab = "Effect",
  cred.int.width = 0.9)

Arguments

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%)

Author(s)

Paul Manser, manser.paul@gene.com

Examples

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")

paulmanser/concavex documentation built on May 5, 2019, 5:53 p.m.