tests/testthat/_snaps/central/response-derivatives.md

first order response derivatives works

Code
  print(yd)
Output
  # A tibble: 50 x 9
      .row .focal .derivative .lower_ci .upper_ci    x0    x1      x2    x3
     <int> <chr>        <dbl>     <dbl>     <dbl> <dbl> <dbl>   <dbl> <dbl>
   1     1 x2            19.8      16.2      23.2 0.480 0.478 0.00127 0.537
   2     2 x2            24.9      19.2      30.1 0.480 0.478 0.0216  0.537
   3     3 x2            31.6      23.7      39.3 0.480 0.478 0.0420  0.537
   4     4 x2            40.5      30.9      50.7 0.480 0.478 0.0624  0.537
   5     5 x2            51.7      40.8      63.9 0.480 0.478 0.0828  0.537
   6     6 x2            64.9      53.6      77.9 0.480 0.478 0.103   0.537
   7     7 x2            78.5      66.6      92.0 0.480 0.478 0.123   0.537
   8     8 x2            88.9      75.1     104.  0.480 0.478 0.144   0.537
   9     9 x2            91.1      74.3     110.  0.480 0.478 0.164   0.537
  10    10 x2            80.9      62.0     102.  0.480 0.478 0.185   0.537
  # i 40 more rows

second order response derivatives works

Code
  print(yd)
Output
  # A tibble: 50 x 9
      .row .focal .derivative .lower_ci .upper_ci    x0    x1      x2    x3
     <int> <chr>        <dbl>     <dbl>     <dbl> <dbl> <dbl>   <dbl> <dbl>
   1     1 x2            219.     125.       311. 0.480 0.478 0.00127 0.537
   2     2 x2            282.     176.       407. 0.480 0.478 0.0216  0.537
   3     3 x2            371.     261.       522. 0.480 0.478 0.0420  0.537
   4     4 x2            496.     397.       633. 0.480 0.478 0.0624  0.537
   5     5 x2            606.     477.       744. 0.480 0.478 0.0828  0.537
   6     6 x2            675.     466.       881. 0.480 0.478 0.103   0.537
   7     7 x2            625.     298.       940. 0.480 0.478 0.123   0.537
   8     8 x2            350.     -51.7      739. 0.480 0.478 0.144   0.537
   9     9 x2           -164.    -562.       216. 0.480 0.478 0.164   0.537
  10    10 x2           -867.   -1299.      -489. 0.480 0.478 0.185   0.537
  # i 40 more rows


gavinsimpson/gratia documentation built on May 4, 2024, 8:13 a.m.