Skip to content

Commit

Permalink
fix broken examples while waiting for tidy to support emmeans
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Nov 6, 2017
1 parent 7e4d7bf commit 7b35e5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Suggests:
runjags,
rstanarm,
rstantools,
lsmeans,
emmeans,
broom,
dotwhisker,
Expand Down
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ library(ggplot2)
library(ggstance)
library(rstan)
library(tidybayes)
library(emmeans)
library(lsmeans)
library(broom)
library(brms)
library(modelr)
Expand Down Expand Up @@ -246,8 +246,8 @@ For example, let's compare to ordinary least squares (OLS) regression:
```{r}
linear_estimates =
lm(response ~ condition, data = ABC) %>%
emmeans(~ condition) %>%
broom:::tidy.ref.grid() %>% # need to specify explicitly until broom updates to support emmeans (formerly lsmeans)
lsmeans(~ condition) %>%
tidy() %>%
mutate(model = "OLS")
linear_estimates
```
Expand Down
1 change: 1 addition & 0 deletions vignettes/tidybayes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ Combining `emmeans::emmeans` with `broom::tidy`, we can generate tidy-format est
linear_estimates = m_linear %>%
emmeans(~ condition) %>%
broom:::tidy.ref.grid() %>% # need to specify explicitly until broom updates to support emmeans (formerly lsmeans)
rename(estimate = emmean) %>%
mutate(model = "OLS")
linear_estimates
Expand Down

0 comments on commit 7b35e5f

Please sign in to comment.