design repeated measurements model

2 views (last 30 days)
Dominik
Dominik on 24 Sep 2015
Edited: Dominik on 22 Sep 2016
Hi, I've a table t =
Group day1_1 day1_2 day2_1 day2_2
_________ ______ ______ ______ ______
'Placebo' 12.023 12.719 12.11 12.554
'Placebo' 11.806 12.186 12.788 12.164
'Control' 11.763 12.008 11.481 13.325
'Placebo' 11.703 11.678 12.073 12.234
'Control' 11.558 12.696 13.692 12.732
'Placebo' 13.633 13.253 11.347 12.432
'Placebo' 12.374 12.41 11.49 11.457
'Placebo' 11.476 11.564 12.542 11.112
'Control' 12.496 10.661 12.199 12.382
'Placebo' 12.659 12.863 11.844 11.799
'Control' 11.611 11.447 12.838 12.592
'Placebo' 12.524 13.7 11.772 11.387
where each row is a individual. individuals are tested on two following days with the same test (before and after). on the second day group Placebo is treated with a plecabo between measurement 1 and 2. We're seeking for differences placebo vs control that only appear on day two.
here is the rest of my code:
Win = [1 2 1 3];
rm = fitrm(t,'day1_1-day2_2 ~ Group','WithinDesign',Win);
tbl = ranova(rm);
is this correct? Probably not.
Edit: still struggling with that. And we added 'sex' and 'age' to our data. Any comment/help welcome !
Thanks
Dom

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!