This function calculates the number of trials and the
number of successful trials cumulatively. If raw data
are provided the function drops all the non-erotic
trials (see clean_data
).
cumulative_success(df)
dataframe, the input dataframe
The function returns a dataframe with the number of trials in one column and the number of successful trials in the other column.
# \donttest{
# Get total number of trials and success cumulatively
cumulative_success_res <- cumulative_success(df = example_m0)
# }