Lab Wiki
  • Welcome!
  • General Lab Info
    • The Lab
      • Who are we? (People)
      • Where are we? (Location)
      • What do we do? (Research)
      • Current Studies
        • Bilingual Families Project
        • Early Comprehension Study
        • Trilingualism Project
        • Referential Continuity Tablet
        • Language Awareness and Separation Questionnaire
      • Lab lingo (Dictionary)
      • Lab Core Values
      • Online Systems
    • Covid-19 Protocols
  • In the Lab
    • Getting started (New lab members)
      • Onboarding
      • Moving to Montreal
        • From outside of Canada
          • Visas
            • Master's / PhD level
            • Post-Doc
            • Visas for significant others
          • Health Insurance (non-Canadians)
          • Driver’s license
          • Taxes (newcomers to Canada)
        • From other provinces to Quebec
          • Health Insurance
          • Taxes
        • Once you arrive
          • Banking
          • Housing
          • Health
          • Utilities
          • Student ID card
          • Social Insurance Number (SIN)
        • More life in Montreal
          • Extending CAQ / Study Permit
          • Moving
          • Neighbourhoods
      • Lab expectations
      • Transportation
      • Academic Survival Guide
      • New Member Paperwork
      • Website Profile
      • Lab Access
      • Subscribing to ListServs
      • Lab conventions
      • Time off
      • Concordia
      • Meeting with Krista
      • New Member Orientation
    • Lab Space
    • Mentorship
      • Grad students and postdocs
      • Undergraduate project students
      • Undergraduate RAs
      • Undergraduate volunteers
    • Funding
      • Undergraduates
        • CUSRA and USRA
        • Bursaries, Scholarships and Awards
        • New FRQS Undergraduate Award
      • Doctoral
        • PBEEE (Merit Scholarship)
        • CRBLM (Graduate Stipend)
        • Tri-Council (NSERC, SSHRC, CIHR)
        • FRQSC
        • Mitacs accelerate
        • MacKenzie King Scholarship
      • Postdoctoral
        • PBEEE (Merit Scholarship)
        • FRQSC
        • Tri-Council (NSERC, SSHRC, CIHR)
      • TAship/Course Instructor
        • TA
        • Course Instructor
      • Expense Reimbursement
    • Conferences
      • Conferences to consider
    • File Naming Protocol
  • Testing Plans
    • Bilingual Family Project
    • Early Comprehension Study
    • ManyBabies
      • MB2
      • MB3
      • MB4
    • Vocabulary Spurt
    • Baby's New Words
    • ADHD Vocabulary
  • Funding
  • Lab Manager Documentation
    • Accounting
      • Expense Reports
      • Cash advances
      • Journal transfers for salaries
      • Grant Fund Codes
    • Lab manager training
      • Setting up delegate access for new lab manager
      • Internal and external mail at Concordia
      • Grant codes
      • Ordering participant t-shirts
      • Canada Summer Jobs
      • Updating lab website
      • Ordering supplies
      • Paying for various things
        • NameCheap (website domain renewal)
        • Amazon gift cards
      • Booking rooms/spaces and the Owl
      • Managing the lab server's storage
    • General Tasks
      • Updating Lab Website
      • Participant Gift Cards
      • Telephone services
    • Listservs
    • Paperwork
      • Grad student bursary
      • Postdoc paperwork
      • CARE Contracts
      • CREW-RA Contracts
    • Onboarding
  • Offboarding
    • Stuff that must be done
    • Returning Keys
  • Project workflow: Planning and setting up a Study
    • Developing a study: What to consider and basic steps
      • New study checklist
      • Participant Criteria
      • Stimulus Creation
    • Determining authorship order
    • Ethics approval process
    • Creating an OSF page for your study
      • Anonymizing your links for review
    • Creating and sharing study materials and data
    • Programming a study
      • EyeLink (Experiment Builder)
      • PsychoPy (PyHab)
    • Pre-registering a study
    • Study Binders
    • Ready to start data collection - piloting and getting the final go-ahead
    • Questionnaires
      • WebCDI
      • Language Mixing Questionnaire
      • LEQ administration
        • Downloading LEQ data from Qualtrics
      • Bilingual CDI Scoring
      • EarlyComp-CDI LAVA
      • TriCog LAVA
      • Demographics
    • HPP
      • Running an HPP study
      • HPP Troubleshooting
    • Daylong Recordings with LENA
    • EyeLink Eyetracker
      • Running an EyeLink Study
      • Programming a study in ExperimentBuilder
      • Data Viewer
      • Troubleshooting
    • Coding data in ELAN
      • ACLEW MinChat
  • Project Workflow: Collecting Data
    • General Testing Info
    • General Testing Procedure
      • Testing Procedure for Researchers
      • Testing Procedure for Helpers
    • Recruitment and scheduling
      • Database Search
      • Facebook Ads
        • Creating/Promoting Ads
        • Tips for Successful Ads
        • A/B+ Testing
      • Qualtrics and New Sign-Ups
      • Contacting Families
        • General Call Script
          • English
          • French
          • Spanish
      • Scheduling Software: Acuity
      • Group recruitment e-mails: Mailmerge
    • Participant Photos
  • Project Workflow: Data Analysis
    • Master Subject List
    • Hypothesis testing for categorical variables
    • Getting started with R
      • Data Visualization
      • Coding in the tidyverse
    • Wrangling eyetracking data
    • Pupillometry data
      • Resources and courses
    • Mixed Effects Models
      • Growth Curve Analysis
    • Anonymizing data
  • Graduate program and career building
    • Non academic career resources
      • Building a LinkedIn page
    • CV how tos
      • Academic CVs
      • Non-academic CVs
    • Establishing an Online Presence
      • Creating an Academic Website
      • Academic Twitter
      • LinkedIn
    • Applying to grad school
      • Thesis supervisors
      • Funding
    • Applying to post-graduate jobs
    • Applying to academic jobs
      • Psych jobs Wiki
    • Applying to postdoctoral positions
      • Cog Dev listserve
    • Writing a cover letter
    • Requesting a letter of recommendation/Reference letter
  • Project Workflow: Manuscript Preparation and Publication
    • Choosing a journal to publish in
    • Co-writing with Krista and othe co-authors and submitting a manuscript
    • Publishing pre-prints
    • Writing your manuscript in R Markdown
    • Writing a response to reviewers comments
Powered by GitBook
On this page
  • Step 1: Get the data you want off the eyetracker
  • Step 2: Begin with a dataprep script
  • Step 3: Data cleaning script
  • Step 4: Statistics
  • Step 5: Visualizations
  1. Project Workflow: Data Analysis

Wrangling eyetracking data

This page is specific to Eyelink data

PreviousCoding in the tidyverseNextPupillometry data

Last updated 1 year ago

Step 1: Get the data you want off the eyetracker

This will walk you through how to get the data off the eyetracker. One key thing to remember when downloading your sample report is that you want to downsample to 50 Hz before you download the data. This will equate to 20ms time bins, which is a great size. It will also ensure that your data file won't be enormously gigantic.

Step 2: Begin with a dataprep script

Once you've set up an for your project, put your data into a folder (suggestion: call this folder "data") and then begin a script that's located in a different folder (suggestion: call this folder "scripts"). Then name this script "1_dataprep".

In this script you're going to do the very initial steps involved in getting your data into usable format. In this script, you should:

  • Rename your columns to be more transparent

  • Double check that you have all the columns you’ll need and that they contain the data you expect

  • Create a unique TIMESTAMP column that spans the beginning to the end of the experiment for each participant

  • Define your interest areas for each trial (e.g left half of screen is target for that trial): you will need to know where your target and distractor images are for each trial (hopefully in your datasource!)

  • Exclude participants who are being excluded for non-data reasons (e.g. wrong language background, parent pointed at the screen, not paying attention…)

At the end of this script, you should write out a new dataframe that contains all the renamed columns and all the participants who might be usable.

Step 3: Data cleaning script

At the start of this script (named "2_cleaning") you should read in the dataframe you saved at the end of your dataprep script (this means you won't have to re-run your dataprep script every time you want to work on the data).

This script is where you'll make data-driven exclusion decisions that are hopefully pre-registered. From here on out, we recommend following the flowcharts and documentation on the webpage.

Your output here should include only trials and participants you plan to analyze.

Step 4: Statistics

This script, named "3_analysis", will include all your stats and findings.

Step 5: Visualizations

This script has all your visualizations in it, and will probably need to source at least one other script in order to get the data. You can optionally add your visualizations at the end of your statistics script.

google slides presentation
Rproj
EyetrackingR