You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we have any experience with that? Produces error:
Error using classreg.regr.FormulaProcessor>parseStr (line 663)
Unable to understand the character vector 'response ~1+cat(myfactor)*spl(mysplinepredictor,5)+mylinearcovariate'.
The text was updated successfully, but these errors were encountered:
interactions with splines are currently not supported
Edit: One would need to specify the interaction manually:
for e = 1:length(EEG.event)
EEG.event(e).mysplinepredictor_factorA = EEG.event(e).mysplinepredictor.*double(EEG.event(e).myfactor=='FactorLevelA');
EEG.event(e).mysplinepredictor_factorB = EEG.event(e).mysplinepredictor.*double(EEG.event(e).myfactor=='FactorLevelB');
And then add the spline twice
spl(mysplinepredictor_factorA,5) + spl(mysplinepredictor_factorB,5)
Do we have any experience with that? Produces error:
Error using classreg.regr.FormulaProcessor>parseStr (line 663)
Unable to understand the character vector 'response ~1+cat(myfactor)*spl(mysplinepredictor,5)+mylinearcovariate'.
The text was updated successfully, but these errors were encountered: