sim_contrast2: Create simulation with signal data used for contrast...

Description Usage Arguments Details Examples

View source: R/simulations_contrast.R

Description

Create simulation with signal data used for contrast analysis.

Usage

1
sim_contrast2(nsamp = 1000, ncond = 5, err_sd = sqrt(0.5))

Arguments

nsamp

Number of samples of each type.

ncond

Number of conditions.

err_sd

The standard deviation of the errors.

Details

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.

Examples

1

mashr documentation built on May 24, 2021, 1:06 a.m.