Replies: 6 comments 3 replies
-
Hey!
I could think that this is a bug in plotting similar to #93 ; which is an upstream bug in ggram, which is not fixed. Cheers, Bene |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What does the last plot show? |
Beta Was this translation helpful? Give feedback.
-
Hi Bene, again thanks a lot for you time :)
This plot shows a continuous signal. So we don't understand why after unfolding it doesn't look continuous anymore. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Bene, What do you mean by the amplitude cleaning thingy? Do you think the issue is with the design matrix or the data that we feed into the unfolding toolbox? Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Hi Bene, But it looks a bit noisy so we tried again with various thresholds and up to 250 was removing a lot of data. Then, we tried a amplitude threshold of 1000 (arbitrary) and the data looks cleaner. Do you see a problem of using such high amplitude threshold or do you have any suggestions of which threshold to use? Would you still want me to send you a dataset? Many thanks again for the great help. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Benedikt,
We are using the unfolding toolbox to extract betas in a fully between-subject experimental design. We are interested in two types of events per subject (blinks and steps). The design matrix for unfolding consist of the following:
cfg = [];
cfg.timelimits = [-0.5, 2];
cfg.eventtypes = { 'blink', 'step' };
cfg.formula = {'y ~ 1', 'y ~ 1' };
We unfolded the data with the following lines:
EEG_uf = uf_designmat(EEG,cfg); % create design matrix
EEG_uf = uf_timeexpandDesignmat(EEG_uf,cfg); % time-expand design matrix
% threshold value
winrej= [];
winrej = uf_continuousArtifactDetect(EEG_uf,'amplitudeThreshold',80);
EEG_uf = uf_continuousArtifactExclude(EEG_uf,struct('winrej',winrej));
EEG_uf = uf_glmfit(EEG_uf,cfg);
ufresult = uf_condense(EEG_uf);
We expect two intercepts, one for each event. This is what we got but the plot for blinks seems to have spikes instead of a ERP wave, and the one for steps is flat (see attached image).
The plot seems to have taken values from the betas (65 channels625 time step2 events) in ufresult, which was a series of zeros with only four columns that had actual values.
We wanted to ask if the design matrix that we had was correct and what would have caused the betas to be spikes?
Thanks and have a good day!
Beta Was this translation helpful? Give feedback.
All reactions