input_output_functions.calculate_response_time_ecdf#

input_output_functions.calculate_response_time_ecdf(df_patient)#

Calculates the empirical cumulative distribution of the response time.

Parameters:

df_patient (pandas.DataFrame) – A dataframe with the patient data where each row represents a patient. At least a column “response_time” is necessary. See the output data section on the ELASPY website for explanations.

Returns:

df_patient (pandas.DataFrame) – A dataframe with the patient data. It now also contains the column “ecdf_rt”, which is the empirical cumulative distribution of the response time.