data(sleepstudy, package = "lme4")
library(dplyr)
library(brms)
options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
sleepstudy %>%
filter(Subject %excluding% c(308, 351, 372, 371)) %>%
mutate(treatment = as.factor(ifelse(row_number(Subject) < 91, "1", "2"))) -> ss2
m_slp_br <- brm(Reaction ~ Days * treatment + (Days |Subject),
data = ss2,
family = gaussian(),
iter = 4000,
control = list(adapt_delta = 0.9))hypothesis(m_slp_br, "treatment2 < 0")hypothesis(m_slp_br, "Days:treatment2 > 0")hypothesis(m_slp_br, "treatment2 + Days:treatment2*5 < 0")--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+unsubscribe@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/30a5c82e-4fdc-41cb-b661-5104a52cf26b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+unsubscribe@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/0854eecf-59f3-4656-9713-ae0712f476df%40googlegroups.com.
> hypothesis(m_slp_br, "treatment2 < 0")Hypothesis Tests for class b: Estimate Est.Error l-95% CI u-95% CI Evid.Ratio Star(treatment2) < 0 -20.82 20.83 -Inf 13.67 6.17 ---'*': The expected value under the hypothesis lies outside the 95% CI.> > hypothesis(m_slp_br, "Days:treatment2 > 0")Hypothesis Tests for class b: Estimate Est.Error l-95% CI u-95% CI Evid.Ratio Star(Days:treatment2) > 0 8.17 3.62 2.39 Inf 66.8 *---'*': The expected value under the hypothesis lies outside the 95% CI.> hypothesis(m_slp_br, "treatment2 + Days:treatment2*5 < 0")Hypothesis Tests for class b: Estimate Est.Error l-95% CI u-95% CI Evid.Ratio Star(treatment2+Days:... < 0 20.02 28.6 -Inf 66.89 0.3 ---'*': The expected value under the hypothesis lies outside the 95% CI.> hypothesis(m_slp_br, "treatment2 + Days:treatment2*5 < 0")
Wouldn't we expect "treatment2 + Days:treatment2*5 > 0"?--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+unsubscribe@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/1608402f-c409-47b4-be25-b492afd273c0%40googlegroups.com.