Menu

How to format text data for import and analysis

Help
lindsal
2018-10-26
2018-10-30
  • lindsal

    lindsal - 2018-10-26

    I am new to PsPM. I am interested in how people respond to two types of event, call them A and B. I have two text files each with two columns. The first file has "timestamp" and "skin conductance" columns and the frequency of observations is 128Hz. The second file has "timestamp" and "event type" where event type is “A” or “B”. One row represents one event and there is an arbitrary length of time between events.

    I am not sure how I should format this data so that I can import it into PsPM. From reading the manual I think I need to merge the two files so that I have one file with three columns: “timestamp”, “skin conductance” and “marker”. Is this right? If so, what should I put in the marker column. Could I use 0 for no event, 1 for event A, and 2 for event B? Or should I do something else?

    I am also not sure if I also need a conditions file and if so what I should put in it. Supposing participants saw event A twice followed by event B three times, should the conditions file be names = {‘event a’, ‘event b’}, onsets={[1,2],[3,4,5]}?

    Any pointers much appreciated.

     

    Last edit: lindsal 2018-10-26
  • Dominik Bach

    Dominik Bach - 2018-10-30

    Hi.

    You can import these data by either (1) bringing both into one matlab or text file, or (b) importing them separately and merging in PsPM. The timestamp information is not required, PsPM will ask you for the sample rate instead.

    Your condition definition is correct if your time units are 'markers'.

    Hope this helps.
    Dominik

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.