Skip to content

Commit

Permalink
smooth -> select
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Aug 5, 2024
1 parent c9b0ef0 commit 8f1d24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/data-slices.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ ylab <- bquote(hat(f)(x, .(z_val)))

Then we evaluate the smooth at the desired values and add a confidence interval
```{r smooth-estimates-bivar}
sm <- smooth_estimates(m_biv, smooth = "te(x,z)", data = ds3) |>
sm <- smooth_estimates(m_biv, select = "te(x,z)", data = ds3) |>
add_confint()
sm
```
Expand All @@ -226,7 +226,7 @@ ds4 <- data_slice(m_biv,
z = round(quantile(z, probs = c(0.25, 0.5, 0.75)), 2)
)
sm <- smooth_estimates(m_biv, smooth = "te(x,z)", data = ds4) |>
sm <- smooth_estimates(m_biv, select = "te(x,z)", data = ds4) |>
add_confint() |>
mutate(fz = factor(z))
Expand Down

0 comments on commit 8f1d24b

Please sign in to comment.