Skip to content

Commit

Permalink
tweak a code block
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Nov 21, 2024
1 parent 506f3c5 commit 7a83164
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
10 changes: 4 additions & 6 deletions paper.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,12 @@ A distributional GAM for $\mathcal{D}$ Tweedie with linear predictors for $\mu$,
m2 <- gam(
list(
chl ~ s(lat, lon, bs = "sos", m = -1, k = 150) + # location
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10),
~ s(lat, lon, bs = "sos", m = -1, k = 100) + # power
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10),
~ s(lat, lon, bs = "sos", m = -1, k = 100) + # scale
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10)),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10)
),
data = chl, method = "REML", control = ctrl, family = twlss()
)
```
Expand Down
9 changes: 3 additions & 6 deletions paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,11 @@ A distributional GAM for $\mathcal{D}$ Tweedie with linear predictors for $\mu$,
m2 <- gam(
list(
chl ~ s(lat, lon, bs = "sos", m = -1, k = 150) + # location
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10),
~ s(lat, lon, bs = "sos", m = -1, k = 100) + # power
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10),
~ s(lat, lon, bs = "sos", m = -1, k = 100) + # scale
s(jul.day, bs = "cr", k = 20) +
s(bath, k = 10)),
s(jul.day, bs = "cr", k = 20) + s(bath, k = 10)),
data = chl, method = "REML", control = ctrl, family = twlss()
)
```
Expand Down
Binary file modified paper_files/figure-latex/m1-appraise-1.pdf
Binary file not shown.
Binary file modified paper_files/figure-latex/m2-appraise-1.pdf
Binary file not shown.
Binary file modified paper_files/figure-latex/m2-draw-1.pdf
Binary file not shown.
Binary file not shown.

0 comments on commit 7a83164

Please sign in to comment.