The designs supported are "oneSample", "paired", "twoSample".
generateNormalData(
nPlan,
nSim = 1000L,
deltaTrue = NULL,
muGlobal = 0,
sigmaTrue = 1,
paired = FALSE,
seed = NULL,
muTrue = NULL
)Returns a list of two data matrices contains at least the following components:
a matrix of data dimension nSim by nPlan[1].
a matrix of data dimension nSim by nPlan[2].
vector of max length 2 representing the planned sample sizes.
the number of replications, that is, experiments with max samples nPlan.
numeric, the value of the true standardised effect size (test-relevant parameter).
numeric, the true global mean of a paired or two-sample t-test. Its value should not matter for the test. This parameter is treated as a nuisance.
numeric > 0,the true standard deviation of the data. Its value should not matter for the test.This parameter treated is treated as a nuisance.
logical, if TRUE then paired t-test.
To set the seed for the simulated data.
numeric representing the true mean for simulations with a z-test.
Default NULL
generateNormalData(20, 15, deltaTrue=0.3)
Run the code above in your browser using DataLab