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

derivative_samples works for a NB GAM, central, backward

Code
  print(sm_2)
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      -6.89  0.786 0.709  0.119  0.975
   2     2 x0         1       6.05  0.252 0.0412 0.153  0.541
   3     3 x0         1      -4.14  0.699 0.245  0.110  0.975
   4     4 x0         1       1.79  0.184 0.160  0.681  0.861
   5     5 x0         1      -0.773 0.960 0.0939 0.676  0.252
   6     6 x0         1      -1.63  0.919 0.677  0.0685 0.942
   7     7 x0         1       1.40  0.102 0.529  0.401  0.998
   8     8 x0         1       9.30  0.172 0.716  0.255  0.205
   9     9 x0         1      -2.47  0.986 0.732  0.368  0.357
  10    10 x0         1      -1.57  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.