simstudy.t {simitation} | R Documentation |
simstudy.t
Description
simstudy.t
Usage
simstudy.t(
n,
mean = 0,
sd = 1,
num.experiments = 1,
alternative = c("two.sided", "less", "greater"),
mu = 0,
conf.level = 0.95,
the.quantiles = c(0.025, 0.1, 0.25, 0.5, 0.75, 0.9, 0.975),
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. |
alternative |
See help(t.test). |
mu |
See help(t.test) |
conf.level |
See help(t.test) |
the.quantiles |
A numeric vector of values between 0 and 1. Summary statistics to analyze the tests will return the specified quantiles. |
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 list containing the following components:
simdat.t
A data frame of the simulated t-distributed data.test.statistics.t
A data frame containing the results of the t-tests.sim.analysis.t
A data frame containing the analysis of the simulated study for t-tests.
Examples
study.t <- simstudy.t(n = 25, mean = 0.3, sd = 1,
num.experiments = 2, alternative = "greater", mu = 0,
conf.level = 0.95, the.quantiles = c(0.025, 0.975),
experiment.name = "experiment",value.name = "x", seed = 817)