[R] time as a continuous factor in a linear mixed effects model

2021-02-25 Thread Laura Coco
Hello, I am interested in investigating the main effects of group, time, and group by time interaction on survey outcomes using linear mixed effects models. Time is considered as continuous (number of days since baseline), but isn't it also categorical, since I want to compare Session 1 vs Session

[R] Error in contrasts adding bonferroni adjustment

2021-01-09 Thread Laura Coco
Hello I am trying to add a Bonferroni adjustment to two comparisons, and I'm getting an error msg. The contrasts run just fine; I used a contrast matrix with dummy variables: Experimental vs Control at post1 (first contrast) and Experimental vs Control at post2 (second contrast). contrast.outcom