View source: R/experimental_data_processing.r
experimental_data_processing | R Documentation |
Read in and process experimental data for model fitting. It is assumed that there is at least 1 response per side (left/right)! Else, this function will not work! The column structure of the data has to be following: SUBJECT_ID, REACTION TIME, STIMULI SIDE (alternatively ANSWER SIDE), CORRECTNESS OF RESPONSE Mind that the data needs to be in a long and tidy format. The data processing is inspired by Ahn et al.'s procedure.
experimental_data_processing(a)
a |
Data frame or tibble. Mind the required columns and names.
See the example data set with |
Returns a list with two entries: "forstan" is the data in the correct format to be used in fitting. "forsim" is for data simulation.
hBayesDM Package and paper: https://www.ncbi.nlm.nih.gov/pubmed/29601060
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.