sim.t {simitation} | R Documentation |
sim.t
Description
sim.t
Usage
sim.t(
n,
mean = 0,
sd = 1,
num.experiments = 1,
experiment.name = "experiment",
value.name = "x",
seed = 7261,
vstr = 3.6
)
Arguments
n |
A numeric value for the number of observations in each experiment. |
mean |
A numeric value for the expected value of the data to be simulated. |
sd |
A numeric value for the standard deviation of the data to be simulated. |
num.experiments |
A numeric value representing the number of simulated experiments. |
experiment.name |
A character value providing the name for the column identifying the experiment. |
value.name |
A character value providing the name for the simulated values. |
seed |
A single numeric value, interpreted as an integer, or NULL. See help(set.seed). |
vstr |
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). |
Value
A data frame with simulated data for a t-test. The returned table will have columns corresponding to 'experiment.name' and 'value.name'.
Examples
simdat.t <- sim.t(n = 25, mean = 0.3, sd = 1, num.experiments = 2,
experiment.name = "experiment", value.name = "x", seed = 2187)