Hi, I'm trying to use the new fitlme bult-in function (R2015a) and it keeps going on an error:
Index exceeds matrix dimensions.Error in classreg.regr.LinearLikeMixedModel.makeSparseZ (line 1312) idxr = accumarray(subs,vals(I),[],@(x) {x});Error in LinearMixedModel/fitStandardLMEModel (line 1225) Zs = LinearMixedModel.makeSparseZ(Z,q,lev,Gid,N);Error in LinearMixedModel/fitter (line 822) model.slme = fitStandardLMEModel(model);Error in classreg.regr.FitObject/doFit (line 220) model = fitter(model);Error in LinearMixedModel.fit (line 2395) model = doFit(model);Error in fitlme (line 224) lme = LinearMixedModel.fit(ds,formula,varargin{:});
Also, running the fnuction takes too long (the error appears after several minutes of wating) and consume a lot of RAM. This is the line I'm running:
lmm1 = fitlme(datos_tabla, 'E1_T1 ~ pred + (1|SUJ)' );
Best Answer