Description Usage Arguments Details Value Dependencies Author(s) Examples
Computes one and two sample t-tests on vectors of data
1 2 |
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 |
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.
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. |
getLength
, getVariance
Paula Raissa Costa e Silva
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.