-
Hi all, I am wondering if it is possible to estimate single-trial ERPs after correction, specifically to disentangle stimuli-related and response-related brain activity. Here is my model specification (I am calling Julia from Python):
Where My question is: is there any way to use the estimated coefficients/rERPs to disentangle stimuli-related single-trial ERPs and response-related single-trial ERPs? When calling Do you have any recommendations on how to obtain these corrected single-trial ERPs? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there, If yes, you are in luck, this is implemented Cheerio, Bene |
Beta Was this translation helpful? Give feedback.
Great!
I recommend the internal function "singletrial" from UnfoldDecode.jl
get overlap free single trails
X_train = singletrials(data, uf_model, events, "response", "type" )
Just in case you want to do decoding on overlap corrected trials, that package would already implement one algorithm to do so. One issue: it is not yet registered, you have to install it via
Pkg.add(url="https://github.com/unfoldtoolbox/UnfoldDecode.jl")
. Unfold decode is unfortunately not yet as polished as unfold, but what you want to do is also not the standard case so that is fine I guess :-)If you want to put the pieces together yourself, you can use predict with keep/remove basis to exclude/keep certain eventt…