This function checks the number of trials in the input dataframe and determines the index of the currently passed checkpoint and the next checkpoint based on the stopping points determined in the sequential analysis plan. If raw data are provided the function drops all the non-erotic trials (see clean_data). The function uses the following checking points: (`r analysis_params$when_to_check`).

tell_checkpoint(df)

Arguments

df

dataframe, the input dataframe

Value

The function returns a list of three. The number of trials, the index of the currently passed checkpoint, the index of the next checkpoint.

Examples

# \donttest{
# Including only erotic trials
tpp_processed_data <- clean_data(raw_data = example_m0)
# Get checkpoint
tell_checkpoint(df = tpp_processed_data)
#> $total_n
#> [1] 51457
#> 
#> $current_checkpoint
#> [1] 1
#> 
#> $next_checkpoint
#> [1] 2
#> 
# }