Skip to content

Commit

Permalink
fix here::i_am
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bean committed Jul 31, 2024
1 parent 7f1b8b6 commit d91dd20
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 18 deletions.
3 changes: 2 additions & 1 deletion src/01b_basic_workflow.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ set.seed(5886935)
#| eval: true
#| include: false
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

As `brms` models are translated to Stan model files, which must be
Expand Down
3 changes: 2 additions & 1 deletion src/01c_priors.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ theme_set(theme_bw(12))

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

Within the Bayesian regression modeling in Stan framework `brms`
Expand Down
3 changes: 2 additions & 1 deletion src/02a_meta_analysis.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ set.seed(593467)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

## Background
Expand Down
3 changes: 2 additions & 1 deletion src/02ab_meta_analysis_trtdiff.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ set.seed(979356)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

## Background
Expand Down
3 changes: 2 additions & 1 deletion src/02ac_meta_analysis_strata.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ options(width=120, digits=2)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

## Background
Expand Down
3 changes: 2 additions & 1 deletion src/02b_dose_finding.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ set.seed(8979476)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

```{r get_annualized_rates}
Expand Down
3 changes: 2 additions & 1 deletion src/02c_dose_escalation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ set.seed(8794567)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

Such a model is straightforward to implement in `brms`. Below, we use a nonlinear formula specification, in order to allow the prior for the intercept to be specified on the log scale.
Expand Down
3 changes: 2 additions & 1 deletion src/02cb_tte_dose_escalation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ gt_format <- function(x) {

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

## Example trial
Expand Down
3 changes: 2 additions & 1 deletion src/02e_multiple_imputation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ options(brms.normalize=FALSE)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

Let us consider some simulated data for a trial in chronic obstructive
Expand Down
3 changes: 2 additions & 1 deletion src/02g_longitudinal.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ control_args <- list(adapt_delta = 0.95)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

```{r get_data, echo = TRUE}
Expand Down
3 changes: 2 additions & 1 deletion src/02h_mmrm.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ options(width=120)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```

```{r include=FALSE}
Expand Down
3 changes: 2 additions & 1 deletion src/02i_time_to_event.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ options(width=120)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```


Expand Down
3 changes: 2 additions & 1 deletion src/02j_network_meta_analysis.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ control_args <- list(adapt_delta=0.95)

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```


Expand Down
3 changes: 2 additions & 1 deletion src/02l_single_arm_pos.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ theme_set(theme_bw(base_size=18))

```{r, include=FALSE, echo=FALSE, eval=TRUE}
# invisible to the reader additional setup steps, which are optional
{{< include setup.R >}}
# {{< include setup.R >}}
source("setup.R")
```


Expand Down
2 changes: 1 addition & 1 deletion workshops/jsm2024/slides/R/02_hist_control.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
here::i_am("/home/beanan1/work/brms_course/slides/R/02_hist_control.R")
here::i_am("slides/R/02_hist_control.R")
library(here)

library(here)
Expand Down
2 changes: 1 addition & 1 deletion workshops/jsm2024/slides/R/05_mmrm.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
here::i_am("/home/beanan1/work/brms_course/slides/R/05_mmrm.R")
here::i_am("slides/R/05_mmrm.R")
library(here)

library(here)
Expand Down
2 changes: 1 addition & 1 deletion workshops/jsm2024/slides/R/06_dose_finding.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
here::i_am("/home/beanan1/work/brms_course/slides/R/06_dose_finding.R")
here::i_am("slides/R/06_dose_finding.R")
library(here)

library(here)
Expand Down
2 changes: 1 addition & 1 deletion workshops/jsm2024/slides/R/07_time_to_event.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
here::i_am("/home/beanan1/work/brms_course/slides/R/07_time_to_event.R")
here::i_am("slides/R/07_time_to_event.R")
library(here)

library(here)
Expand Down

0 comments on commit d91dd20

Please sign in to comment.