Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
# Linger-Summarizer ## Description: A Python script that summarizes .dat files from Linger into a tab-delimited format. (Version 1.1) ## How to use: The script has a command line interface. It was tested with Python 2.7.6 Input: a) A directory contains dat files, b) the path of the output file Optional input: a) the encoding of the dat files, b) the upper bound of the RT (default 2500ms) c) the lower bound of the RT (default 100ms). e.g. "python ./Linger_Summarizer_Tang_2018.py -i ./dats/ -o ./dats.summary.tab" See all options with "python ./Linger_Summarizer_Tang_2018.py -h" Output headers: Column 1 - 8 are copies of the columns in dat with the headers "subject experiment item condition Wpos word region Rtraw" Column 9 "Rtraw.1" is a version of "Rtraw" with outliers being replaced by the symbol "-" with the exception of any "Rtraw" that has a non-integer value in the "Wpos" column. Outlier criteria are set by users, upper bound (default 2500 ms) and lower bound (default 100 ms). Column 10 "correct" contains the accuracy of the response for each item. Column 11 "Lpos" contains the position of the item in the presented order. Column 12 "LogRT" is the log(base-10) transformed RTs of "Rtraw.1". Column 13 "Wlen" is the length of "word". # Linger-Filter ## Description: An R script that filters a summarised linger text file data by mean and std calculated on multiple variables. (Version 1.4). ## Description: This script allows the user to filter a variable, called it VarX (e.g. logRT or Correct) by a subset of one or more variables. For instance, one might want to filter RT by-subject, by-condition and by region, the "grouping variables" here would be subject, condition and region. The filtering strategy is as followed: 1) The mean and standard deviation of VarX are calculated for each unique combination of the grouping variables. 2) VarX above or below N times the standard deviation from the mean are filtered. ## How to use: Open the script in R, complete the user specification section (see below for detail), save the script and finally run the whole script. The user specification would ask you for: Your working directory The name of your summarised linger text file The delimiter of the text file The name of the output filtered text file The name of the output outliers text file The threshold of the filter? (how many std above or below the mean) The name(s) of the grouping variables The name of the filtering variable
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.