DPdata: Generated dataset of Dot-probe data
Description
A dataset containing data necessary to run examples of each functionFormat
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
- congruency: sets to congruent or incongruent trials
- latency: RT measure (simulated data)
- correct: accuracy (set to all accurate for the example)
Details
The following code was used to generate the data DPdata <- data.frame(subject = rep(1:20, each = (96*2)),
blockcode = rep(c("block1","block2"), each = 96, length.out = 20*2*96),
trialnum = rep(1:96, length.out = 20*2*96),
congruency = rep(c("Congruent","Incongruent"), length.out = 20*2*96),
latency = rep(rnorm(100,25), length.out = 20*2*96),
correct = rep(1, length.out = 20*2*96))