tests/testthat/_snaps/m_nb-forward-order-2/posterior-samples.md

derivative_samples works for a NB GAM order 2

Code
  print(sm_1)
Output
  # A tibble: 3,000 x 8
      .row .focal .draw .derivative    x0     x1     x2    x3
     <int> <chr>  <int>       <dbl> <dbl>  <dbl>  <dbl> <dbl>
   1     1 x0         1      22.2   0.786 0.709  0.119  0.975
   2     2 x0         1      23.4   0.252 0.0412 0.153  0.541
   3     3 x0         1       3.91  0.699 0.245  0.110  0.975
   4     4 x0         1      21.5   0.184 0.160  0.681  0.861
   5     5 x0         1       1.76  0.960 0.0939 0.676  0.252
   6     6 x0         1      12.0   0.919 0.677  0.0685 0.942
   7     7 x0         1      12.1   0.102 0.529  0.401  0.998
   8     8 x0         1     126.    0.172 0.716  0.255  0.205
   9     9 x0         1       0.913 0.986 0.732  0.368  0.357
  10    10 x0         1       9.76  0.849 0.259  0.778  0.346
  # i 2,990 more rows


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