I am assessing the effect of a specific drug (categorical factor: 0=placebo, 1=drug1, 2=drug2) and probability differences on choice. My model in MATLAB therefore looks like that:
lme=fitglme(T,'choice~prob_diff+drug+drug:prob_diff+(1|subj)',
'link','logit','Distribution','binomial','FitMethod','REMPL');
I get a significant interaction effect between drug and probability difference (positive tstat for drug 1 and negative tstat for drug2). As I understand this indicates that the slope for predicting choice from probability differences is higher under drug 1 (compared to drug2+placebo) and lower under drug2 (compared to drug1 and placebo).
My question is: What would be a good way to visualize the effects? I can`t just estimate a new model seperately for each drug and compare the slopes right? Because then I would miss within subject variance that is included in the full model.