Calibrate values for macro parameter k
calibrate_k.Rd
The macro parameter k
is the least-well-known parameter in rebound analysis.
k
links micro and macro rebound effects, and can be calibrated if
macro rebound (Re_macro
) is considered to be a residual and k
selected
such that a desired total rebound value (target_Re_tot
) is obtained.
Usage
calibrate_k(
.rebound_data,
Re_tot_target,
case_colname = ReboundTools::eeu_base_params$case,
I_E_colname = ReboundTools::eeu_base_params$I_E,
S_dot_dev_colname = ReboundTools::star_vars$S_dot_dev,
N_dot_star_colname = ReboundTools::star_vars$N_dot_star,
Re_macro_colname = ReboundTools::rebound_terms$Re_macro,
Re_tot_colname = ReboundTools::rebound_terms$Re_tot
)
Arguments
- .rebound_data
A data frame of rebound data, probably created by
rebound_analysis()
.- Re_tot_target
The target value for total rebound. A number or a vector of numbers of same length as the number of observations in
.rebound_data
.- case_colname, I_E_colname
- S_dot_dev_colname
- N_dot_star_colname
- Re_macro_colname, Re_tot_colname
Details
The calibrated value of k
is calculated by
S_dot_dev / (N_dot_star * I_E) * [Re_macro + (Re_tot_target - Re_tot)]
.
Names of return values are taken from the case column in .rebound_data
.
Examples
load_eeu_data() %>%
rebound_analysis() %>%
calibrate_k(0.63)
#> Car Lamp Car, r = 0
#> 6.255591 2.380070 6.376461