Skip to content

Commit

Permalink
Revise the figure
Browse files Browse the repository at this point in the history
  • Loading branch information
krisrs1128 committed Sep 7, 2024
1 parent e0de510 commit 4327806
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vignettes/IBD.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -476,16 +476,21 @@ This situation is more ambiguous. It's possible that a confounder could be
responsible for the indirect effect; however, it would have to be quite strong,
perhaps stronger than is plausible.

```{r}
```{r, fig.width = 9, fig.height = 2.8}
confound_ix |>
left_join(sensitivity_path) |>
ggplot(aes(rho, indirect_effect, group = contrast)) +
geom_hline(yintercept = 0, linetype = 3, linewidth = 1) +
geom_vline(xintercept = 0, linetype = 3, linewidth = 1) +
geom_line(linewidth = 2) +
facet_wrap(outcome ~ mediator, scales = "free_y")
labs(x = expression("Confounding parameter"~ rho), y = "Estimated Indirect Effect") +
theme(
axis.title = element_text(size = 16),
strip.text = element_text(size = 14)
) +
facet_wrap(reorder(outcome, indirect_effect) ~ reorder(mediator, indirect_effect), scales = "free_y")
```


# Hurdle-Lognormal Approach

There are many zeros in the metabolites data, and sparse regression is not the
Expand Down

0 comments on commit 4327806

Please sign in to comment.