tests/testthat/_snaps/m_nb-backward/posterior-samples.md

derivative_samples works for a NB GAM, central, backward

Code
  print(sm_1)
Output
  # A tibble: 1,000 x 8
      .row .focal .draw .derivative       x0    x1    x2    x3
     <int> <chr>  <int>       <dbl>    <dbl> <dbl> <dbl> <dbl>
   1     1 x0         1        5.70 0.000239 0.478 0.485 0.537
   2     2 x0         1        5.80 0.0103   0.478 0.485 0.537
   3     3 x0         1        5.89 0.0204   0.478 0.485 0.537
   4     4 x0         1        5.96 0.0304   0.478 0.485 0.537
   5     5 x0         1        6.01 0.0405   0.478 0.485 0.537
   6     6 x0         1        6.02 0.0506   0.478 0.485 0.537
   7     7 x0         1        6.00 0.0606   0.478 0.485 0.537
   8     8 x0         1        5.94 0.0707   0.478 0.485 0.537
   9     9 x0         1        5.84 0.0807   0.478 0.485 0.537
  10    10 x0         1        5.71 0.0908   0.478 0.485 0.537
  # i 990 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.