Learn R Programming

PairedData (version 0.9.1)

t.test: Student's test test for paired data

Description

A method designed for objects of class paired.

Usage

## S3 method for class 'paired':
t.test(x, ...)

Arguments

x
An object of class paired.
...
further arguments to be passed to or from methods.

Value

  • A list with class "htest" containing the following components:
  • statisticthe value of the t-statistic.
  • parameterthe degrees of freedom for the t-statistic.
  • p.valuethe p-value for the test.
  • conf.inta confidence interval for the mean appropriate to the specified alternative hypothesis.
  • estimatethe estimated difference in mean.
  • null.valuethe specified hypothesized value of mean difference.
  • alternativea character string describing the alternative hypothesis.
  • methoda character string indicating what type of test was performed (always paired here)
  • data.namea character string giving the name(s) of the data.

See Also

yuen.test

Examples

Run this code
data(PrisonStress)
with(PrisonStress,t.test(paired(PSSbefore,PSSafter)))

Run the code above in your browser using DataLab