experimental_data_processing: Experimental Data Processing

View source: R/experimental_data_processing.r

experimental_data_processingR Documentation

Experimental Data Processing

Description

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.

Usage

experimental_data_processing(a)

Arguments

a

Data frame or tibble. Mind the required columns and names. See the example data set with StanDDM::example_data

Value

Returns a list with two entries: "forstan" is the data in the correct format to be used in fitting. "forsim" is for data simulation.

References

hBayesDM Package and paper: https://www.ncbi.nlm.nih.gov/pubmed/29601060


Seneketh/StanDDM documentation built on July 15, 2024, 5:01 p.m.