Contrast Functions and Jacobians
Usage
h_diff(x)
h_jac_diff(x)
h_ratio(x)
h_jac_ratio(x)
h_odds_ratio(x)
h_jac_odds_ratio(x)
Arguments
- x
(numeric
) Vector of values.
Value
Vector of contrasts, or matrix of jacobians.
Examples
h_diff(1:3)
#> [1] 1 2 1
h_jac_ratio(1:3)
#> [,1] [,2] [,3]
#> [1,] -2 1.00 0.0
#> [2,] -3 0.00 1.0
#> [3,] 0 -0.75 0.5