Skip to content

Commit

Permalink
try installing if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
krisrs1128 committed Sep 3, 2024
1 parent fb29136 commit adaf6be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vignettes/mindfulness.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ways. The point of mediation analysis is to provide evidence for one or the
other of these possibilities.

```{r libraries}
library(cmdstanr)
library(ggdist)
library(ggrepel)
library(phyloseq)
Expand Down Expand Up @@ -105,6 +106,12 @@ exper <- mediation_data(
exper
```

```{r check_install}
if (is.null(cmdstan_version(error_on_NA = FALSE))) {
install_cmdstan()
}
```

This block applies a logistic-normal multinomial model to the microbiome
outcome. This is an example where the response variables are all modeled
jointly. We'll use a ridge regression model for each of the mediators. This is a
Expand Down

0 comments on commit adaf6be

Please sign in to comment.