Create Design Matrix that match data

32 views
Skip to first unread message

Alireza Karami

unread,
Apr 14, 2023, 10:29:27 AM4/14/23
to GLMdenoise
Hello

I want to use GLMsingle. I know that the function requires the stimulus design matrix to be specified in "lock" with discrete fMRI volumes. I had an event-related design in which conditions do not exactly coincide with the TRs of the data, and conditions are not evenly spaced (they are jittered). So, first, I need to find an evenly spaced design matrix that contains all the randomly spaced conditions, and then I need to resample the data so that its size is the same as design matrix.
 
Does anyone has suggestion for these two problems?

Thanks in advance,
Alireza

Alireza Karami

unread,
Apr 14, 2023, 1:29:35 PM4/14/23
to GLMdenoise
I forgot to say that I have the onset times of conditions. I need to convert them to a binary design matrix before using GLMsingle.

Kendrick Kay

unread,
Apr 15, 2023, 9:38:36 PM4/15/23
to Alireza Karami, GLMdenoise
Hi Alireza,

The following (from https://glmsingle.readthedocs.io/en/latest/wiki.html) may be helpful to your question:

PastedGraphic-1.png


Kendrick




--
You received this message because you are subscribed to the Google Groups "GLMdenoise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glmdenoise+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glmdenoise/b3ee6dc4-72e3-4563-a84b-50cab6ff1155n%40googlegroups.com.

Alireza Karami

unread,
Apr 17, 2023, 12:10:14 PM4/17/23
to GLMdenoise
Hello

Thank you. Yes, it helped me to solve the problem.

Alireza

Reply all
Reply to author
Forward
0 new messages