tests/testthat/_snaps/forward/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.3      23.2 0.480 0.478 0.00127 0.537
   2     2 x2            24.9      19.3      30.2 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.9      64.0 0.480 0.478 0.0828  0.537
   6     6 x2            64.9      53.6      78.0 0.480 0.478 0.103   0.537
   7     7 x2            78.5      66.6      92.1 0.480 0.478 0.123   0.537
   8     8 x2            88.9      75.2     104.  0.480 0.478 0.144   0.537
   9     9 x2            91.2      74.3     110.  0.480 0.478 0.164   0.537
  10    10 x2            80.9      62.1     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            221.     129.       313. 0.480 0.478 0.00127 0.537
   2     2 x2            293.     184.       422. 0.480 0.478 0.0216  0.537
   3     3 x2            379.     280.       517. 0.480 0.478 0.0420  0.537
   4     4 x2            490.     388.       629. 0.480 0.478 0.0624  0.537
   5     5 x2            604.     476.       742. 0.480 0.478 0.0828  0.537
   6     6 x2            678.     465.       886. 0.480 0.478 0.103   0.537
   7     7 x2            627.     289.       953. 0.480 0.478 0.123   0.537
   8     8 x2            374.     -38.7      776. 0.480 0.478 0.144   0.537
   9     9 x2           -165.    -563.       220. 0.480 0.478 0.164   0.537
  10    10 x2           -864.   -1306.      -470. 0.480 0.478 0.185   0.537
  # i 40 more rows


Try the gratia package in your browser

Any scripts or data that you put into this service are public.

gratia documentation built on June 25, 2024, 5:08 p.m.