Description Usage Arguments Value See Also Examples
View source: R/compare_thresholds.R
compare_thresholds
is a helper function for thresh_gam
.
It test whether a specific threshold value
leads to a new splitting of trainings observations in the threshold
variable in comparison to the previous threshold value. Returns FALSE if
the change in the t-t_val does not result in a new grouping of threshold
values (above and below the t_val).
1 | compare_thresholds(t_val, t_var)
|
t_val |
A vector with threshold values. |
t_var |
A vector with pressure values of the threshold variable. |
The function returns a tibble with one row for each t-val and two columns:
t_val
The input vector of threshold values.
change
logical; if TRUE, the respective threshold value lead to a new splitting of trainings observations in the threshold variable.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.