extracting vectors of stimulus onsets for fmri software
David McFarlane
mcfarla9 at msu.edu
Wed Mar 31 14:54:25 UTC 2010
Jim,
Two thoughts --
- After the experiment, export your data to Excel, and write an Excel
macro to recombine the data and create whatever vectors you like. Or,
if you prefer something like Perl, once again use E-DataAid to export
your data in some suitable text format, then script away!
- During the experiment, use c.SetAttrib in inline code to have E-Prime
directly generate whatever data columns you like.
Either of these ways would involve some programming. Note that E-Prime
and Excel both use Microsoft Visual Basic for Applications (VBA), so
familiarity with either platform will help with the other (although you
still have to get familiar with the specific object model of each platform).
-- David McFarlane, Professional Faultfinder
> I was hoping to benefit from the experience of someone who uses e-
> prime for fmri experiments and analyzes their data in SPM (or any
> other software that requires input of vectors of stimulus onsets).
>
> What is the simplest way to get vectors of stimulus onsets to SPM for
> event related analyses (given that you have multiple stimulus types)?
>
> So far, I have a variable created that gives the onset time of each
> stimulus relative to the start of the scan. Then, I also have multiple
> variables (one for each stimulus type) that give the onset times of
> particular stimulus types in seconds. Unfortunately, though, when a
> given stimulus occurs, its onset time is recorded in one of these
> multiple variables whereas all other of these variables recieve a
> blank space (by design). With this setup, I can copy and paste one of
> these variables into SPM as a vector of onset times for a given
> stimulus type and manually delete the spaces mentioned above -- what a
> pain! There must be an easier way!
>
> For example, can I export a text file that contains a vector of the
> stimulus onset times for a single stimulus type (without spaces for
> trials where that stimulus type did not occur)?
>
> Thanks,
> Jim
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list