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.13 0.786
   2     2 x0         1        2.96 0.252
   3     3 x0         1       -3.86 0.699
   4     4 x0         1        4.62 0.184
   5     5 x0         1       -2.87 0.960
   6     6 x0         1       -2.75 0.919
   7     7 x0         1        2.89 0.102
   8     8 x0         1        4.73 0.172
   9     9 x0         1       -2.91 0.986
  10    10 x0         1       -3.19 0.849
  # i 2,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.