Description Usage Arguments Value More about the params
View source: R/generate_example_data.R
This code generates realistic example data for the Transparent Psi Project.
1 2 3 4 5 6 7 8 9 | generate_example_data(
num_sim = 6000,
erotic_trial_size_per_participant = 18,
m0_prob = 0.5,
m1_prob = 0.51,
esp_user_percentage = 1,
chance_for_refuse_consent = 0.01,
chance_for_stopping_session = 0.002
)
|
num_sim |
number of simulated sessions (1 regular session contains 36 trials, 18 erotic and 18 non-erotic) |
erotic_trial_size_per_participant |
number of erotic trials performed per participant |
m0_prob |
probability of successful guess if M0 is true |
m1_prob |
probability of successful guess among ESP-users in the simulated sample |
esp_user_percentage |
the percentage of ESP-users, or ESP-capable individuals in the population |
chance_for_refuse_consent |
chance of refusing consent or being excluded due to one of the eligibility criteria (e.g. underage) |
chance_for_stopping_session |
chance of stopping prematurely in each trial, to simulate some missing data due to unexpected events |
A dataframe containing the same data structure as expected from real data collected in the study.
Set esp_user_percentage to 1 to simulate that everyone has the same level of ESP ability, or set it to 0 to simulate that no one has ESP ability. Set the value to something in between to simulate that only a portion of the population can use ESP, and the others are just guessing randomly. E.g., example esp_user_percentage = 0.03 and m1_prob = 0.65 simulates that only 3 of the total population can use ESP, and prediction success rate in this subgroup is 65 Setting chance_for_stopping_session to 0.002 would generate roughly 2 but that cannot introduce bias in our confirmatory analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.