mousePrep Reference

These are the main functions in the mousePrep package for processing mouse-tracking data including data standardization, analysis, outlier detection and aggregation. The functions are organized into categories based on their purpose, but they can be used in any order except when specified otherwise. Each function includes parameters for customization and returns a modified dataset along with an audit log of changes made.

Depending on the file format, one of the standard R functions for reading files into R can be used such as read.table or read.csv After the data is loaded, these functions can be used to clean, preprocess, and engineer features from the raw mouse-tracking data.

Data Standardization

Column Standardization

Case filtering

Feature Engineering

Screen Geometry

Timing & alignment

Outlier detection based on timing features

After timing features are computed, outliers can be detected and handled using the following functions.

Repeated visits for trajectories and questions

Merging Other Functional Data

Processing via mousetrap

Export & reporting

Examples

  • data <- standardize_colnames(dat_full)
  • screen_dims <- screen_dimension_calculator(data, uas = TRUE)