ccvx_risk_profile: Plot Concavex model risk profiles

Description Usage Arguments Examples

Description

Function to plot Concavex model risk profiles. Specifically, posterior probabilities of drug efficacy not exceeding specific thresholds are plotted by doses tested, and for specific thresholds of interest. If no thresholds are specified in 'eff.thresholds' argument, only the plot of doses against treatment effect is generated.

Usage

1
ccvx_risk_profile(ccvx.samples, eff.thresholds = NULL)

Arguments

ccvx.samples

List containg Gibbs samples output by ccvx_fit() function

eff.thresholds

A list of efficacy thresholds of specific interest for which to compute probabilities

Examples

1
2
3
4
ccvx.mod <- ccvx_build_jags()
ccvx.samples <- ccvx_fit(ccvx.mod, doses = c(0, 4, 7, 13, 20), mu.hat = c(1, 20, 50, 60, 65), std.err = rep(20, 5))
par(mfrow=c(1,2))
ccvx_risk_profile(ccvx.samples, eff.thresholds = c(5, 10, 20, 40))

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