| prepare_data {LATERmodel} | R Documentation | 
Prepares data for reciprobit plot
Description
Prepares data for reciprobit plot
Usage
prepare_data(raw_data, time_unit = "ms", name_separator = "_")
Arguments
| raw_data | Vector of reaction times for a single participant, or a
dataframe containing a column called timewith the reaction times and
optional other columns: 
 a column called namewith a unique label for each dataset a column called participantwith a unique id per participant and another
calledconditionwith a unique label for each condition. In this case thenamefor each dataset will be constructed asparticipant+name_separator+condition. a column called colorthat contains one hexadecimal color code for each
dataset. In this case thenamefor each dataset will be set to be the name
of the color. | 
| time_unit | Units of the reaction times in rt_vector,
must be one of "ms", "ds", or "s". | 
| name_separator | If the raw_datadataframe does not contain anamecolumn,
but does haveparticipantandconditioncolumns, thenamefor each
dataset will be constructed asparticipant+name_separator+condition. | 
Value
A dataframe with columns: time, color, name, promptness,
and e_cdf.
Examples
df <- prepare_data(carpenter_williams_1995)
[Package 
LATERmodel version 0.2.0 
Index]