internal.t.test {simitation}R Documentation

Internal function for One-sample t-test

Description

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

Usage

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

Arguments

x

A 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 (or difference in means if you are performing a two-sample test). 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. Default is 0.95.

Value

A data frame with test results.


[Package simitation version 0.0.7 Index]