cumulative_success: Calculating cumulative success

Description Usage Arguments Value Examples

View source: R/analysis_confirmatory.R

Description

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).

Usage

1

Arguments

df

dataframe, the input dataframe

Value

The function returns a dataframe with the number of trials in one column and the number of successful trials in the other column.

Examples

1
2
# Get total number of trials and success cumulatively
cumulative_success_res <- cumulative_success(df = example_m0)

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