
Convert a simulations_collection to a tibble
Source:R/simulations_collection.R
as_tibble.simulations_collection.RdCumulative statistics are shown to gauge how the simulations converge.
Usage
# S3 method for class 'simulations_collection'
as_tibble(x, target_dose = NULL, alpha = 0.05, ...)Arguments
- x
object of type
simulations_collection- target_dose
numerical dose index, or NULL (default) for all doses
- alpha
significance level for symmetrical confidence intervals
- ...
extra args are ignored
Value
a tibble with cols:
dose, the dose-leveln, cumulative inference using the first n simulated iterationsdesign.x, The first design in the comparison, aka design Xhit.x, logical showing if design X recommended dose in iterate ndesign.y, The second design in the comparison, aka design Yhit.x, logical showing if design Y recommended dose in iterate nX, cumulative sum of hit.x within dose, i.e. count of recommendationsX2, cumulative sum of hit.x^2 within doseY, cumulative sum of hit.y within dose, i.e. count of recommendationsY2, cumulative sum of hit.y^2 within doseXY, cumulative sum of hit.x * hit.y within dosepsi1, X / npsi2, Y / nv_psi1, variance of psi1v_psi2, variance of psi2cov_psi12, covariance of psi1 and psi2delta, psi1 - psi2v_delta, variance of deltase_delta, standard error of deltadelta_l, delta - q * se_delta, where q is alpha / 2 normal quantiledelta_u, delta + q * se_delta, where q is alpha / 2 normal quantilecomparison, Label of design.x vs design.y, using design names