error when performing mixed effect analysis

Submitted by gekehe on

Hi Yan,

An error occured when I am performing mixed effect analysis using DPABI.  There are 2 groups of subjects (19 control and 19 patient) in my data and each group underwent 2 fMRI scan in 2 different times.  I chose grey matter density as covariate images and FD as txt covariates. Should I perform ANCOVA (repeat) or mixed effect analysis to see the difference between the two groups and within two patient conditions? How do I perform post-hoc analysis after mixed effect analysis since there is no post hoc analysis to cho0se in mixed effect analysis? 

Regression Calculation finished.
未定义函数或变量 "CovVolume"。
 
出错 y_MixedEffectsAnalysis_Image (line 144)
        CovVolumeSubjectMean(:,:,:,i) = mean(CovVolume(:,:,:,find(SubjectRegressorsAll==SubIndex(i))),4);
 
出错 DPABI_STAT_TOOL>ComputeButton_Callback (line 537)
        y_MixedEffectsAnalysis_Image(S, OutputName, MaskFile, ImageCell, TextCell, PALMSettings);
 
出错 gui_mainfcn (line 95)
        feval(varargin{:});
 
出错 DPABI_STAT_TOOL (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
出错 @(hObject,eventdata)DPABI_STAT_TOOL('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
 
 
Error while evaluating uicontrol Callback

I downloaded the latest version again and perfomed statistics with the same data, error happpened again. The error message is as below:

 
=======================================================================
             ___         ___                         ___
            /  /\       /  /\                       /__/\
           /  /::\     /  /::\                     |  |::\
          /  /:/\:\   /  /:/\:\    ___     ___     |  |:|:\
         /  /:/~/:/  /  /:/~/::\  /__/\   /  /\  __|__|:|\:\
        /__/:/ /:/  /__/:/ /:/\:\ \  \:\ /  /:/ /__/::::| \:\
        \  \:\/:/   \  \:\/:/__\/  \  \:\  /:/  \  \:\~~\__\/
         \  \::/     \  \::/        \  \:\/:/    \  \:\
          \  \:\      \  \:\         \  \::/      \  \:\
           \  \:\      \  \:\         \__\/        \  \:\
            \__\/       \__\/                       \__\/
 
=======================================================================
                 Permutation Analysis of Linear Models
=======================================================================
Error using palm_takeargs (line 1133)
Unknown option: "Files"
 
Error in palm_core (line 33)
[opts,plm] = palm_takeargs(varargin{:});
 
Error in palm (line 81)
palm_core(varargin{:});
 
Error in y_GroupAnalysis_PermutationTest_Image (line 102)
palm([TempDir,filesep,'PALMConfig.txt']);
 
Error in y_MixedEffectsAnalysis_Image (line 102)
    y_GroupAnalysis_PermutationTest_Image(DependentVolume,AllCov,[OutputName,'_ConditionEffect_T'],MaskFile,CovariateVolume,Contrast,'T',0,Header,PALMSettings_Within);
    
Error in DPABI_STAT_TOOL>ComputeButton_Callback (line 537)
        y_MixedEffectsAnalysis_Image(S, OutputName, MaskFile, ImageCell,
        TextCell, PALMSettings);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPABI_STAT_TOOL (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
Error in
@(hObject,eventdata)DPABI_STAT_TOOL('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
 
 
Error while evaluating uicontrol Callback

Hi,

A similar error also haappened when I performed two sample t test with permutation. The version is the latest. No error occured when permutation analysis is not chosen. 

       ___         ___                         ___
            /  /\       /  /\                       /__/\
           /  /::\     /  /::\                     |  |::\
          /  /:/\:\   /  /:/\:\    ___     ___     |  |:|:\
         /  /:/~/:/  /  /:/~/::\  /__/\   /  /\  __|__|:|\:\
        /__/:/ /:/  /__/:/ /:/\:\ \  \:\ /  /:/ /__/::::| \:\
        \  \:\/:/   \  \:\/:/__\/  \  \:\  /:/  \  \:\~~\__\/
         \  \::/     \  \::/        \  \:\/:/    \  \:\
          \  \:\      \  \:\         \  \::/      \  \:\
           \  \:\      \  \:\         \__\/        \  \:\
            \__\/       \__\/                       \__\/
 
=======================================================================
                 Permutation Analysis of Linear Models
=======================================================================
Error using palm_takeargs (line 1133)
Unknown option:
"plexus\Article\version\MRI\750\HC_PR_ALFF\Temp\DependentVolume.nii"
 
Error in palm_core (line 33)
[opts,plm] = palm_takeargs(varargin{:});
 
Error in palm (line 81)
palm_core(varargin{:});
 
Error in y_GroupAnalysis_PermutationTest_Image (line 102)
palm([TempDir,filesep,'PALMConfig.txt']);
 
Error in y_TTest2_Image (line 81)
    y_GroupAnalysis_PermutationTest_Image(DependentVolume,Regressors,OutputName,MaskFile,CovariateVolume,Contrast,'T',0,Header,PALMSettings);
    
Error in DPABI_STAT_TOOL>ComputeButton_Callback (line 519)
        y_TTest2_Image(S, OutputName, MaskFile, ImageCell, TextCell,
        PALMSettings);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPABI_STAT_TOOL (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
Error in
@(hObject,eventdata)DPABI_STAT_TOOL('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
 
 
Error while evaluating uicontrol Callback

Thanks for your reply. I deleted all the spaces in the path but another error happened. The error message is as below:

Reading images from "I:\Research\statistics\VMHC_results\control_first\zVMHCMap_Sub_19.nii" etc.
Undefined function 'file2mat' for input arguments of type 'struct'.
 
Error in file_array/subsref>subfun (line 80)
t = file2mat(sobj,varargin{:});
 
Error in file_array/subsref (line 60)
    t = subfun(sobj,args{:});
 
Error in file_array/numeric (line 13)
out = subsref(fa,struct('type','()','subs',{vo}));
 
Error in file_array/double (line 11)
out = double(numeric(fa));
 
Error in y_Read (line 71)
    Data = double(Nii.dat);
 
Error in y_ReadRPI (line 41)
[Data,Header] = y_Read(FileName,VolumeIndex);
 
Error in y_ReadAll (line 70)
    [Data, VoxelSize, Header] = y_ReadRPI(FileList{1});
 
Error in y_MixedEffectsAnalysis_Image (line 40)
    [AllVolume,VoxelSize,theImgFileList, Header] = y_ReadAll(DependentDir{i});
 
Error in DPABI_STAT_TOOL>ComputeButton_Callback (line 537)
        y_MixedEffectsAnalysis_Image(S, OutputName, MaskFile, ImageCell,
        TextCell, PALMSettings);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPABI_STAT_TOOL (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
Error in
@(hObject,eventdata)DPABI_STAT_TOOL('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
 
 
Error while evaluating uicontrol Callback

I doubt something wrong happend with my matlab (version 2013b) or dpabi,  the same error occured when I perform scrubbing and degree centrality.  A warning occured after I typed dpabi in command line: 

Warning: MATLAB Toolbox Path Cache is out of date and is not being used.
Type 'help toolbox_path_cache' for more info
 
When I perform scrubbing using dpabi an error ocured: 
Error using file_array/subsref>subfun (line 80)
An UndefinedFunction error was thrown on the workers for 'file2mat'.  This might
be because the file containing 'file2mat' is not accessible on the workers.  Use
addAttachedFiles(pool, files) to specify the required files to be attached.  See
the documentation for 'parallel.Pool/addAttachedFiles' for more details.
 
Error in file_array/subsref (line 60)
    t = subfun(sobj,args{:});
 
Error in file_array/numeric (line 13)
out = subsref(fa,struct('type','()','subs',{vo}));
 
Error in file_array/double (line 11)
out = double(numeric(fa));
 
Error in y_Read (line 71)
    Data = double(Nii.dat);
 
Error in y_ReadRPI (line 41)
[Data,Header] = y_Read(FileName,VolumeIndex);
 
Error in y_ReadAll (line 68)
    [Data, VoxelSize, Header] = y_ReadRPI(FileList{1});
 
Error in y_Scrubbing (line 38)
    [AllVolume,VoxelSize,theImgFileList, Header] =y_ReadAll(AllVolume);
 
Error in DPARSFA_run>(parfor body) (line 3756)
            y_Scrubbing([AutoDataProcessParameter.DataProcessDir,filesep,FunSessionPrefixSet{iFunSession},AutoDataProcessParameter.StartingDirName,filesep,AutoDataProcessParameter.SubjectID{i}],
            ...
 
Error in DPARSFA_run (line 3732)
        parfor i=1:AutoDataProcessParameter.SubjectNum
 
Error in DPARSFA>pushbuttonRun_Callback (line 1786)
    [Error]=DPARSFA_run(handles.Cfg);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
Caused by:
    Undefined function 'file2mat' for input arguments of type 'struct'.
 
Error while evaluating uicontrol Callback