t.test: Performs one and two sample t-tests

Description Usage Arguments Value Examples

Description

Aggregate function to perfom one and two sample t-tests

Usage

1
2
  t.test(x, y = NULL, alternative = 1, mu = 0,
    paired = FALSE, var.equal = FALSE, conf.level = 0.95)

Arguments

a

a numeric vector of data values

b

a numeric vector of data values

alternative

an integer specifying the alternative hypothesis, 1 for "two.sided"’ (default), 2 for "greater" or 3 for "less".

mu

a number indicating the true value of the mean (or difference in means if you are performing a two sample test).

paired

a logical indicating paired non-paired t-test.

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.

conf.level

confidence level of the interval.

Value

a 2D table

Examples

1
2
3
4
## Not run: 
# put example here

## End(Not run)

datashield/dsteststats documentation built on May 14, 2019, 7:52 p.m.