Skip to content

Commit

Permalink
Update introduction-to-konfound.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
qinyun-lin committed May 6, 2024
1 parent 6f44fe9 commit 3c96944
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions vignettes/introduction-to-konfound.Rmd
Expand Up @@ -155,12 +155,11 @@ konfound(m4, condition, two_by_two = TRUE)
Here is an example of the use of `konfound()` with a model fit with `lmer()`:

```{r}
### below is commented out because of the issue for matrix
# if (requireNamespace("lme4")) {
# library(lme4)
# m3 <- fm1 <- lmer(Reaction ~ Days + (1 | Subject), sleepstudy)
# konfound(m3, Days)
# }
if (requireNamespace("lme4")) {
library(lme4)
m3 <- fm1 <- lmer(Reaction ~ Days + (1 | Subject), sleepstudy)
konfound(m3, Days)
}
```

## Use of mkonfound() for meta-analyses that include sensitivity analysis
Expand Down

0 comments on commit 3c96944

Please sign in to comment.