No spline term is found #277
-
Hello, fbutton = @formula(0 ~ 1 ) bfsacc = firbasis((-0.1, 0.8), sfreq) bfDict = [ "stimonset" => (fstim, bfstim), m = Unfold.fit(UnfoldModel,bfDict,eegevent,Data,eventcolumn = "event") plot_splines(m) AssertionError: No spline term is found in UnfoldModel. Does your UnfoldModel really have a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks! I replicated the issue, this is a bug in UnfoldMakie. I'll create an issue right away. The problem is that right now only the first event-type is checked for a spline-term. So if you urgently need this functionality, you would need to rename your events so that "saccade" is alphabetically the first one. e.g. you could use this code: replace!(evts.event,"saccade"=>"a_saccade") # in place,
...
bfDict = [...
"saccade" => (fsacc,bfsacc)] |
Beta Was this translation helpful? Give feedback.
-
Hello but it works if I change the order in my design (saccade in the first) bfDict = [ #] |
Beta Was this translation helpful? Give feedback.
Hello
So I've tried different tricks "accade", "zsaccade" but it doesn't change the final order in results and so I get the same error.
but it works if I change the order in my design (saccade in the first)
bfDict = [ #]
"saccade" => (fsacc,bfsacc),
"stimonset" => (fstim, bfstim),
"buttonpress" => (fbutton, bfbutton)]