View source: R/simulations_contrast.R
sim_contrast2 | R Documentation |
Create simulation with signal data used for contrast analysis.
sim_contrast2(nsamp = 1000, ncond = 5, err_sd = sqrt(0.5))
nsamp |
Number of samples of each type. |
ncond |
Number of conditions. |
err_sd |
The standard deviation of the errors. |
The first condition is the reference group. The deviations are the difference between the subsequent conditions with the reference group. The simulation consists of 90 10 different types of deviations: equal among conditions, present only in the first subsequent condition, independent across conditions.
sim_contrast2(100,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.