Dear Khushbu,
As highlighted by Jacek and Volkmar, if the factors XY and AB are
between-subjects, then you could use a 'full factorial' design instead
of a 'flexible factorial' one (or not include the 'subject' factor in
that model).
Best regards,
Guillaume.
On 10/12/2020 21:44, Khushbu Agarwal wrote:
> Hello,
>
> I want to do a flexible factorial analysis on a set of data where I want to see the effect of XY on AB.
>
> Here, A and B are the two groups and based on X and Y status, they are divided into:
> AX
> BX
> AY
> BY
>
> I need help in designing the flexible factorial model for this data.
>
> I was trying to define factor 1 as subject; factor 2 as AB; factor3 as XY
> I added subjects as A, B, X and Y
>
> conditions 1 1; 1 2; 2 1; 2 2
>
> main effect: factor 1
> interaction: factor 2 3
>
> When I try to an run the batch I see an error:
>
> 10-Dec-2020 16:14:14 - Running 'Factorial design specification'
> 10-Dec-2020 16:14:14 - Failed 'Factorial design specification'
> Error using spm_design_within_subject (line 27)
> Error for subject 1: conditions not specified for each scan
> In file "/Users/agarwalk2/Documents/MATLAB/spm12/spm_design_within_subject.m" (v4837), function "spm_design_within_subject" at line 27.
> In file "/Users/agarwalk2/Documents/MATLAB/spm12/config/spm_run_factorial_design.m" (v7739), function "spm_run_factorial_design" at line 515.
>
> The following modules did not run:
> Failed: Factorial design specification
>
> Can someone please help me with this.
>
> Thanks in advance
> Khushbu
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|