split_data: Function to split data according to stopping points

Description Usage Arguments Value Examples

Description

This function cuts the processed data at each checkpoint that is passed and saves the result to a list of dataframes. The function also calculates the total number of erotic trials, and the total number of successful guesses for the each checkpoint. Finally, it saves the number of iterations that is needed for the correction of alpha for NHST tests. The function can be used to prepare a dataframe to run the main confirmatory analysis on all the passed checkpoints iteratively.

Usage

1

Arguments

df

dataframe, the input dataframe

Value

The function returns a dataframe with the following structure:

Examples

1
2
3
4
# Including only erotic trials
tpp_processed_data <- clean_data(raw_data = example_m0)
# Splitting data by checkpoints
tpp_split_data <- split_data(df = tpp_processed_data)

marton-balazs-kovacs/tppr documentation built on Oct. 27, 2021, 3:04 p.m.