analyze.simstudy.t2 {simitation}R Documentation

analyze.simstudy.t2

Description

analyze.simstudy.t2

Usage

analyze.simstudy.t2(
  test.statistics.t2,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  the.quantiles = c(0.025, 0.1, 0.25, 0.5, 0.75, 0.9, 0.975)
)

Arguments

test.statistics.t2

Summary information for fitting two-sample t tests. Structure is in the form returned by the function simitation::sim.t2.test().

alternative

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.

Value

A list containing the following elements:

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)


test.statistics.t2 <- sim.t2.test(simdat.t2 = simdat.t2,
alternative = "less", mu = 0, conf.level = 0.9,
experiment.name = "experiment", group.name = "group",
x.value = "x", y.value = "y", value.name = "value")

analysis.t2 <- analyze.simstudy.t2(test.statistics.t2 =
test.statistics.t2, alternative = "less", conf.level = 0.9,
the.quantiles = c(0.25, 0.5, 0.75))

[Package simitation version 0.0.7 Index]