Skip to content

Commit 56a765e

Browse files
committed
loo2-non-factorized.Rmd: fix backticks
1 parent f12c647 commit 56a765e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

R/helpers.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ release_questions <- function() {
189189
c(
190190
"Have you updated references?",
191191
"Have you updated inst/CITATION?",
192-
"Have you updated the vignettes?"
192+
"Have you updated the vignettes?",
193+
"Have you tested building the vignettes on GitHub Actions?"
193194
)
194195
}
195196
# nocov end

vignettes/loo2-lfo.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ preds <- cbind(
281281
)
282282
283283
ggplot(cbind(df, preds), aes(x = year, y = Estimate)) +
284-
geom_smooth(aes(ymin = Q5, ymax = Q95), stat = "identity", size = 0.5) +
284+
geom_smooth(aes(ymin = Q5, ymax = Q95), stat = "identity", linewidth = 0.5) +
285285
geom_point(aes(y = y)) +
286286
labs(
287287
y = "Water Level (ft)",
@@ -321,7 +321,7 @@ The initial step for the exact computation is to calculate the log-predictive
321321
densities by refitting the model many times:
322322

323323
```{r exact_loglik, results="hide"}
324-
loglik_exact <- matrix(nrow = nsamples(fit), ncol = N)
324+
loglik_exact <- matrix(nrow = ndraws(fit), ncol = N)
325325
for (i in L:(N - 1)) {
326326
past <- 1:i
327327
oos <- i + 1
@@ -514,7 +514,7 @@ predict.
514514

515515
```{r exact_loglikm, results="hide"}
516516
M <- 4
517-
loglikm <- matrix(nrow = nsamples(fit), ncol = N)
517+
loglikm <- matrix(nrow = ndraws(fit), ncol = N)
518518
for (i in L:(N - M)) {
519519
past <- 1:i
520520
oos <- (i + 1):(i + M)

vignettes/loo2-non-factorized.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ is strong. In fact, summing over the pointwise ELPD values and leaving out the
569569
fourth observation yields practically equivalent results for approximate and
570570
exact LOO-CV:
571571

572-
````{r pt4}
572+
```{r pt4}
573573
without_pt_4 <- c(
574574
approx = sum(psis_loo$pointwise[-4, "elpd_loo"]),
575575
exact = sum(exact_elpds[-4])

0 commit comments

Comments
 (0)