ds.tTest: Distributed Student's t-Test

Description Usage Arguments Details Value Dependencies Author(s) Examples

Description

Computes one and two sample t-tests on vectors of data

Usage

1
2
ds.tTest(x, y = NULL, mu = 0, paired = FALSE, conf.level = 0.95,
  var.equal = FALSE, datasources = NULL)

Arguments

x

a character, the name of a numeric vector of data values.

y

x a character, the name of a optional numeric vector of data values.

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 whether you want a paired t-test.

conf.level

confidence level of the interval.

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.

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as data frame, from opal datasources.

Details

If paired is TRUE then both x and y must be specified and they must be the same length. Missing values are silently removed (in pairs if paired is TRUE). If var.equal is TRUE then the pooled estimate of the variance is used. By default, if var.equal is FALSE then the variance is estimated separately for both groups and the Welch modification to the degrees of freedom is used.

Value

A list containing the following components:

statistic

the value of the t-statistic.

parameter

the degrees of freedom for the t-statistic.

p.value

the p-value for the test.

conf.int

a confidence interval for the mean appropriate to the specified alternative hypothesis.

estimate

the estimated mean or difference in means depending on whether it was a one-sample test or a two-sample test.

null.value

the specified hypothesized value of the mean or mean difference depending on whether it was a one-sample test or a two-sample test.

method

a character string indicating what type of t-test was performed.

Dependencies

getLength, getVariance

Author(s)

Paula Raissa Costa e Silva

Examples

1
2
3
4
{
ds.tTest(x)
ds.tTest(x, y)
}

paularaissa/distStatsClient documentation built on June 19, 2019, 12:43 a.m.