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: 1,000 x 8
      .row .focal .draw .derivative       x0    x1    x2    x3
     <int> <chr>  <int>       <dbl>    <dbl> <dbl> <dbl> <dbl>
   1     1 x0         1        8.84 0.000239 0.478 0.485 0.537
   2     2 x0         1        6.90 0.0103   0.478 0.485 0.537
   3     3 x0         1        4.34 0.0204   0.478 0.485 0.537
   4     4 x0         1        1.26 0.0304   0.478 0.485 0.537
   5     5 x0         1       -2.20 0.0405   0.478 0.485 0.537
   6     6 x0         1       -5.86 0.0506   0.478 0.485 0.537
   7     7 x0         1       -9.56 0.0606   0.478 0.485 0.537
   8     8 x0         1      -13.0  0.0707   0.478 0.485 0.537
   9     9 x0         1      -15.9  0.0807   0.478 0.485 0.537
  10    10 x0         1      -18.2  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.