Learn R Programming

PairedData (version 1.1.1)

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

Description

A method designed for objects of class paired.

Usage

# S3 method for 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:

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 difference in mean.

null.value

the specified hypothesized value of mean difference.

alternative

a character string describing the alternative hypothesis.

method

a character string indicating what type of test was performed (always paired here)

data.name

a character string giving the name(s) of the data.

See Also

yuen.t.test

Examples

Run this code
# NOT RUN {
data(PrisonStress)
with(PrisonStress,t.test(paired(PSSbefore,PSSafter)))
# }

Run the code above in your browser using DataLab