Description Usage Arguments Details Value Examples
View source: R/response_files.R
Simulate Response Data Files From Longitudinal Illusory Truth Study
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | simulate_resp_files(
nsubj,
phase_eff = c(0, 0, 0, 0),
path,
overwrite = FALSE,
p_too_fast = 0.01,
p_too_slow = 0.01,
p_incomplete = 0.01,
p_cheat = 0.01,
p_no_consent_all = 0.01,
p_no_consent_phase = 0.01,
p_nonnative = 0.01,
p_repeater = 0.01,
duration_range_1 = c(180, 2400),
duration_range_all = c(60, 1800)
)
|
nsubj |
Number of subjects; must be a multiple of 8. |
phase_eff |
A four-element vector giving the size of the
illusory truth effect at each of the four phases (on the log odds
scale). Use |
path |
Path to subdirectory where resulting files will be stored; will be created if it does not exist. |
overwrite |
Whether to overwrite the subdirectory if it exists. |
p_too_fast |
Probability that the respondent completed the
task faster than the cutoff time ('Duration (in seconds)' less
than |
p_too_slow |
Probability that the respondent completed the
task slower than the cutoff time ('Duration (in seconds)' greater
than |
p_incomplete |
Probability that the respondent failed to complete the task ('Finished' = FALSE). |
p_cheat |
Probability that the respondent looked up answers ('cheat' = "Yes...") |
p_no_consent_all |
Probability the respondent refused consent to the full study. |
p_no_consent_phase |
Probability the respondent refused consent to a phase of the study. |
p_nonnative |
Probability the respondent is not a native English speaker. |
p_repeater |
Probability that the respondent just pressed the same key over and over for at least one phase. |
duration_range_1 |
Two-element vector giving the range of acceptable task durations for Phase 1. |
duration_range_all |
Two-element vector giving the range of acceptable task durations for Phases 2, 3, and 4. |
Simulates response data and writes a set of CSV files out
to path
in Qualtrics format. The file names are of the
format PXLY.csv
, where X is the phase number (1-4) and Y
is the list number (1-8). So P2L6.csv is the file for phase 2 of
list 6. When we ran a pilot study, we discovered that the data
files had a somewhat different structure from this, but we
nevertheless opted to retain this function rather than rewriting
it to match the new format.
A character vector with the names of the data files.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.