This function generates the example data of one participant.
generate_session(
n_iteration,
erotic_trial_size_per_participant,
m0_prob,
m1_prob,
esp_user_percentage,
chance_for_refuse_consent,
chance_for_stopping_session
)
number of erotic trials performed per participant
probability of successful guess if M0 is true
probability of successful guess among ESP-users in the simulated sample
the percentage of ESP-users, or ESP-capable individuals in the population
chance of refusing consent or being excluded due to one of the eligibility criteria (e.g. underage)
chance of stopping prematurely in each trial, to simulate some missing data due to unexpected events
The function returns a dataframe containing the realistic example data of one participant. The returned dataframe has 22 variables and 1 to 41 rows depending on the results of the random probability functions.