tests/testthat/_snaps/m_1_smooth/posterior-samples.md

derivative_samples works for a simple GAM

Code
  print(sm)
Output
  # A tibble: 3,000 x 5
      .row .focal .draw .derivative    x0
     <int> <chr>  <int>       <dbl> <dbl>
   1     1 x0         1       -4.11 0.786
   2     2 x0         1        5.25 0.252
   3     3 x0         1       -5.82 0.699
   4     4 x0         1        4.97 0.184
   5     5 x0         1       -4.31 0.960
   6     6 x0         1       -3.16 0.919
   7     7 x0         1        2.27 0.102
   8     8 x0         1        4.76 0.172
   9     9 x0         1       -4.56 0.986
  10    10 x0         1       -2.01 0.849
  # i 2,990 more rows


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