You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps & wrappers/BRMS demo.Rmd
+58-51Lines changed: 58 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -196,22 +196,22 @@ fit_eip_HRDT <-
196
196
prior = empirically_informed_priors_HRDT
197
197
)
198
198
199
-
fit_wip_HRDT <-
200
-
brm(
201
-
bff_HRDT,
202
-
data=sim_data_HRDT,
203
-
chains = 4,
204
-
cores = 4,
205
-
seed = seed,
206
-
backend = "cmdstan",
207
-
warmup=2000,
208
-
iter=4000,
209
-
control=list(
210
-
adapt_delta=0.9,
211
-
max_treedepth = 10
212
-
),
213
-
prior = weakly_informative_priors_HRDT
214
-
)
199
+
# fit_wip_HRDT <-
200
+
# brm(
201
+
# bff_HRDT,
202
+
# data=sim_data_HRDT,
203
+
# chains = 4,
204
+
# cores = 4,
205
+
# seed = seed,
206
+
# backend = "cmdstan",
207
+
# warmup=2000,
208
+
# iter=4000,
209
+
# control=list(
210
+
# adapt_delta=0.9,
211
+
# max_treedepth = 10
212
+
# ),
213
+
# prior = weakly_informative_priors_HRDT
214
+
# )
215
215
```
216
216
217
217
## Model diagnosing
@@ -296,15 +296,24 @@ sprintf(
296
296
We can then construct plots that show the posterior distribution for the group-level differences in threshold and slope. We will also add a line range materializing the 95% CI.
title='Group mean differences between conditions',
310
319
subtitle='HRDT',
@@ -645,22 +654,22 @@ fit_eip_RRST <-
645
654
prior = empirically_informed_priors_RRST
646
655
)
647
656
648
-
fit_wip_RRST <-
649
-
brm(
650
-
bff_RRST,
651
-
data=sim_data_RRST,
652
-
chains = 4,
653
-
cores = 4,
654
-
seed = seed,
655
-
backend = "cmdstan",
656
-
warmup=1000,
657
-
iter=2000,
658
-
control=list(
659
-
adapt_delta=0.99,
660
-
max_treedepth = 10
661
-
),
662
-
prior = weakly_informative_priors_RRST
663
-
)
657
+
# fit_wip_RRST <-
658
+
# brm(
659
+
# bff_RRST,
660
+
# data=sim_data_RRST,
661
+
# chains = 4,
662
+
# cores = 4,
663
+
# seed = seed,
664
+
# backend = "cmdstan",
665
+
# warmup=1000,
666
+
# iter=2000,
667
+
# control=list(
668
+
# adapt_delta=0.99,
669
+
# max_treedepth = 10
670
+
# ),
671
+
# prior = weakly_informative_priors_RRST
672
+
# )
664
673
```
665
674
666
675
## Model diagnosing
@@ -780,6 +789,7 @@ spread_diffs<-
780
789
spread_diffs_stats<-
781
790
spread_diffs %>%
782
791
summarise(
792
+
name='spread_difference',
783
793
m=mean(difference),
784
794
LB=quantile(difference,0.025),
785
795
UB=quantile(difference,0.975),
@@ -833,28 +843,25 @@ sprintf(
833
843
We can then construct plots that show the posterior distribution for the group-level differences in threshold and spread. We will also add a linerange materializing the 95% CI.
0 commit comments