Millisecond Online Community

Forums & Feeds
Welcome to Millisecond Online Community Sign in | Join | Help
in Search

how to create a command file to rearrange data?

Last post 05-08-2008, 8:59 PM by seandr. 1 replies.
Sort Posts: Previous Next
  •  05-08-2008, 1:51 PM 1620

    how to create a command file to rearrange data?

    Hi,

    our lab is trying to rearrange some dot probe data collected using the web version of Inquisit. For each participant, there are five practice trials and two blocks of 48 trials each (96 total trials). We need to reformat the data so that for each participant there is a row containing the id, the date, trial-latency, and trial-correct measures for each trialcode. For example, the trial code "neut_left_happy_right_probe_right_BLACK_MALE"  for the first block would look like this:
    id    date          neut_left_happy_right_probe_right_BLACK_MALEblock1LATENCY  neut_left_happy_right_probe_right_BLACK_MALEblock1CORRECT         

    So far, all we've been able to do is cut and paste to rearrange the data in this order in an excel file but this is incredibly inefficient. If anyone has any suggestions, they would be greatly appreicated. Thanks for your time!

     

             

  •  05-08-2008, 8:59 PM 1621 in reply to 1620

    Re: how to create a command file to rearrange data?

    Hi there,

    Do you have access to SPSS? If so, the SPSS scripting language has facilities for doing this sort of thing. If memory servers, the AGGREGATE command allows you to collapse data into a single row of summary scores.

    Our IAT page has an SPSS script that does this sort of thing for IAT data. You might be able to adapt is to yours. The script can be downloaded from here: http://www.millisecond.com/download/samples/v3/IAT/default.aspx

    -Sean

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems