jwdink / eyetrackingR

This package is designed to make dealing with eye-tracking data easier. It addresses tasks along the pipeline from raw data to analysis and visualization.
http://eyetrackingr.com
Other
82 stars 20 forks source link

Time cluster analysis using lmer does not work with factor predictors #70

Open brockf opened 4 years ago

brockf commented 4 years ago

Currently, the example here doesn't work:

http://www.eyetracking-r.com/docs/analyze_time_clusters

To get it to work, you must recode Sex (factor) to a numeric variable, and then pass by shuffle_by=Sex to analyze_time_clusters. This is because of a mismatch between the auto-factored variable in lmer() (which is named SexM automatically) — it doesn't match a column name.