Description Usage Arguments Value Examples
View source: R/GIA_functions.R
Calculate S generally
1 | calc_S(best_pars, S_fn = calc_S_base, fn_list = NULL)
|
best_pars |
named vector of parameters. "tau_1" must be a name. As must "tau_2" and "gamma_A" and "gamma_B" |
S_fn |
function to calculate |
fn_list |
NULL |
Hewlett's S for the given model
1 2 3 4 5 | best_pars <- c("tau_1" = 0,
"tau_2" = 1,
"gamma_A" = 1,
"gamma_B" = 1)
calc_S_base(best_pars) # should be 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.