Description Usage Arguments Value Examples
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.
1 |
df |
dataframe, the input dataframe |
The function returns a dataframe with the following structure:
checkpoint, integer,the number of investigated erotic trials at a given checkpoint
split_data, df, the input dataframe until with trials from 1 to the given checkpoint
success, integer, the number of successful guesses
total_n, integer, the number of erotic trials
n_iteration, integer, the number of iteration (see confirmatory_mixed_effect
)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.