View source: R/create_sample_data.R
create_sample_data | R Documentation |
The function generated mock data for tests and examples according to the arguments
create_sample_data(
p_mean,
p_sd,
seed = 1,
N = 30,
trials_per_cnd = 100,
wSEsd = 2
)
p_mean |
the effect's population mean |
p_sd |
the standard deviation of the population's effect |
seed |
- a seed to use when generating the resulting data frame |
N |
- the number of simulated participants |
trials_per_cnd |
- the number of simulated trials per condition |
wSEsd |
- the standard deviation of the dependent measure (within subject error term) |
a data frame with three columns: id (participant id), 'condition' (condition label), and 'var' (the dependent variable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.