View source: R/dose-response.R
valid_individual | R Documentation |
Generates an individual with reasonable ed25 and ed75 values.
valid_individual( thresh_25, thresh_75, eds_25, eds_75, p1_distribution_parameters, p2_distribution_parameters )
thresh_25 |
lower bound on simulated ed25 vs observed ed25 (bound calculated as thresh_25 * observed) |
thresh_75 |
upper bound on simulated ed75 vs observed ed75 (bound calculated as thresh_75 * observed) |
eds_25 |
vector of ed25s from estimates from Phillips et al. (2017) |
eds_75 |
vector of ed75s from estimates from Phillips et al. (2017) |
p1_distribution_parameters |
a named list of items used to characterise the p1 distribution: cdf_inv_full, weight. Here cdf_inv is the inverse-cdf characterising the distribution of p1 distribution from Phillips et al. (2017); "weight" a number (0<=weight<=1) used to control the variance reduction in individual heterogeneity. |
p2_distribution_parameters |
a named list of items used to characterise the log_p2|p1 distribution. It comprises: "alpha" posteriors draws for the intercept in the regression of log_p2 on p1; "beta" posterior draws for slope parameter in the regression of log_p2 on p1; "sigma0" posterior draws for the constant noise term in the regression of log_p2 on p1; "sigma1" posterior draws for the heteroscedastic noise term in the regression of log_p2 on p1; "weight" a number (0<=weight<=1) used to control the variance reduction in individual heterogeneity. |
a tibble containing dose-response parameters for an individual
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.