sim.t2
sim.t2(
nx,
ny,
meanx = 0,
meany = 1,
sdx = 1,
sdy = 1,
num.experiments = 1,
experiment.name = "experiment",
group.name = "group",
x.value = "x",
y.value = "y",
value.name = "value",
seed = 3471,
vstr = 3.6
)A data frame or data.table with simulated data for two independent groups. Columns in the returned table correspond to the experiment identifier, group labels (`x` or `y`), and the simulated values for each group. @examples simdat.t2 <- sim.t2(nx = 30, ny = 40, meanx = 0, meany = 0.2, sdx = 1, sdy = 1, num.experiments = 2, experiment.name = "experiment", group.name = "group", x.value = "x", y.value = "y", value.name = "value", seed = 17)
A numeric value for the number of observations in the x group for each experiment.
A numeric value for the number of observations in the y group for each experiment.
A numeric value for the expected value of the x group used in the simulation.
A numeric value for the expected value of the y group used in the simulation.
A numeric value for the standard deviation of the x group used in the simulation.
A numeric value for the standard deviation of the y group used in the simulation.
A numeric value representing the number of simulated experiments.
A character value providing the name for the column identifying the experiment.
A character value providing the name of the column of the group labels.
A character value specifying the label used for data in the x group (in the column labled by the group.name parameter).
A character value specifying the label used for data in the y group (in the column labled by the group.name parameter).
A character value specifying the name of the column that contains the value of the simulated data.
A single numeric value, interpreted as an integer, or NULL. See help(set.seed).
A character string containing a version number, e.g., "1.6.2". The default RNG configuration of the current R version is used if vstr is greater than the current version. See help(set.seed).