plot_mse {psborrow}R Documentation

Plot mean squared error (MSE)

Description

Plot mean squared error (MSE) for each prior distribution according to selected simulation parameters

Usage

plot_mse(dt, HR = 1, driftHR = 1, pred = "none")

Arguments

dt

a data.frame containing summary statistics for the posterior samples from each simulation generated with get_summary.

HR

pre-specified HR between treatment and control arm in the internal trial for which the MSE should be plotted. Must be within unique(dt$HR).

driftHR

pre-specified HR between external control arm and internal control arm for which the MSE should be plotted. Must be within unique(dt$driftHR).

pred

predictors to use when fitting exponential distribution in MCMC for which the MSE should be plotted. Must be within unique(dt$pred).

Value

a bar plot of class ggplot containing the MSE for each prior distribution.


[Package psborrow version 0.2.1 Index]