internal.t2.test {simitation}R Documentation

Internal function for Two-sample t-test

Description

Computes the two-sample t-test for the given data.

Usage

internal.t2.test(
  x,
  y,
  alternative = c("two.sided", "less", "greater"),
  mu = 0,
  paired = FALSE,
  var.equal = FALSE,
  conf.level = 0.95
)

Arguments

x

First numeric vector.

y

Second numeric vector.

alternative

A character string specifying the alternative hypothesis. One of "two.sided", "less", or "greater". Default is "two.sided".

mu

A number indicating the true value of the mean difference (relevant if paired = TRUE). Default is 0.

paired

A logical indicating whether you want a paired t-test. Default is FALSE.

var.equal

A logical variable indicating whether to treat the two variances as being equal. If TRUE then the pooled variance is used to estimate the variance otherwise the Welch (or Satterthwaite) approximation to the degrees of freedom is used. Default is FALSE.

conf.level

A numeric value between 0 and 1 indicating the confidence level for the interval estimate of the mean difference. Default is 0.95.

Value

A data frame with test results.


[Package simitation version 0.0.7 Index]