boot_GIA {loewesadditivity} | R Documentation |
Helper function for the bootstrap results
Description
Helper function for the bootstrap results
Usage
boot_GIA(
par,
gia_df,
gia_est,
n_boot = 100,
alpha = 0.05,
GIA_fn = base_GIA,
S_fn = calc_S_base,
fn_list = NULL,
verbose = FALSE
)
Arguments
par |
named vector of parameters, that correspond to those used in 'GIA_fn'. |
gia_df |
data frame with the following columns
|
gia_est |
estimated values of GIA (these will be used as the 'truth') |
n_boot |
number of boot straps to use to estimate confidence intervals of the parameters, GIA estimates, and values of S. The default is 100. If n_boot = 0, then no bootstraps will be run and only the point estimates will be returned. |
alpha |
value of alpha. Default is .05 |
GIA_fn |
function to calculate the GIA from dose_A and dose_B combinations and given set of parameters. Default is base_GIA |
S_fn |
Function to calculate S. Default is calc_S_base |
fn_list |
additional arguments to pass to GIA_fn |
verbose |
logical indicating whether we should print where we are in the process. Default is FALSE. |
Value
a list with the following elements
params_esta data frame of dimension # of params x 4 where each row in the data frame is a parameter and where the columns are the mean, lower, alpha/2 quantile,and upper,100 - alpha/2 quantile
S_est a data frame of one row x 4 where we provide the mean, lower, and upper estimates
GIA_estthe original data with additional columns of the mean, lower, and upper estimates for each dose combination