Description Usage Arguments Value Author(s) See Also Examples
A method designed for objects of class paired.
1 2 |
x |
An object of class paired. |
... |
further arguments to be passed to or from methods. |
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. |
Stephane Champely
yuen.t.test
1 2 | data(PrisonStress)
with(PrisonStress,t.test(paired(PSSbefore,PSSafter)))
|
Loading required package: MASS
Loading required package: gld
Loading required package: mvtnorm
Loading required package: lattice
Loading required package: ggplot2
Attaching package: 'PairedData'
The following object is masked from 'package:base':
summary
Paired t-test
data: PSSbefore and PSSafter
t = -0.46926, df = 25, p-value = 0.6429
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-4.559817 2.867509
sample estimates:
mean of the differences
-0.8461538
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.