The data is adapted from the DPdata set using the following code
TSTdata
A dataframe with 3840 rows and 6 variables
subject: contains participant numbers for 20 subjects
blockcode: two block conditions "block1" and "block2"
trialnum: 96 trials per block
trialtype: sets to repeat or switch trials
latency: RT measure (simulated data)
correct: accuracy (set to all accurate for the example)
TSTdata <- DPdata names(TSTdata)[names(TSTdata) == "congruency"] <- "trialtype" TSTdata$trialtype <- ifelse(TSTdata$trialtype == "Congruent", "Repeat", "Switch")
A dataset containing data necessary to run examples of each function