MC | R Documentation |
Data from an experiment investigating differences in reaction times across three tasks of increasing complexity.
Participants reacted to a square or a circle (variable shape
)
appearing on the screen by
pressing the space bar whenever they saw any shape (block reaction
).
pressing the space bar whenever they saw a specific shape (block goNoGo
).
pressing a key when they saw one of the shapes and a different key when they
saw the other one (block discrimination
).
MC
A data frame with 2,404 rows and 4 variables:
A unique identifier for each participant.
The shape presented on the screen.
The task of how to react to a shape.
The measured reaction time in milliseconds.
## Not run:
# fit a linear model using 'brms'
# regress reaction time as a function of the block
fit <- brms::brm(RT ~ block, data = MC)
# check encoding scheme used in the model
get_cell_definitions(fit)
# get draws for the reaction block
extract_cell_draws(fit, block == "reaction")
# compare the goNoGo block with the reaction block
compare_groups(fit, block == "goNoGo", block == "reaction")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.