summary: Summary statistics for paired samples In PairedData: Paired Data Analysis

Description

Classical and robust statistics (location, scale and correlation) for paired samples.

Usage

 1 2 ## S4 method for signature 'paired' summary(object,tr=0.2)

Arguments

 object an object of class paired. tr percenatge of trimming.

Value

A list with a first table corresponding to location and scale statistics and a second table to Pearson and winsorized correlation.

The first table contains four rows corresponding to calculations for x, y, x-y and (x+y)/2 variables. The location and scale statistics are given in columns.

 n sample size. mean mean. median median. trim trimmed mean (tr=0.2) sd standard deviation. IQR interquartile range (standardised to be consistent with the sd in the normal case) median ad median of absolute deviations (standardised) mean ad mean of absolute deviations (standardised) sd(w) winsorised standard deviation (tr=0.2 and standardised) min minimum value. max maximum value.

Author(s)

Stephane CHAMPELY

Examples

 1 2 3 4 5 z<-rnorm(20) x<-rnorm(20)+z y<-rnorm(20)+z+1 p<-paired(x,y) summary(p)

Example output

Attaching package: 'PairedData'

The following object is masked from 'package:base':

summary

\$stat
n       mean     median       trim       sd   IQR (*) median ad (*)
x (x)   20 -0.2605300 -0.1304759 -0.1656371 1.335601 1.2839514     1.2606183
y (y)   20  0.9433965  1.0013114  0.9788450 1.667414 1.5020554     1.5569226
x-y     20 -1.2039265 -1.5799088 -1.3329284 1.413046 1.5370552     1.3480841
(x+y)/2 20  0.3414332  0.2355220  0.3213359 1.335243 0.8970679     0.8527932
mean ad (*)     sd(w)       min      max
x (x)      1.388289 1.3652740 -2.840402 2.403948
y (y)      1.567083 1.4830515 -2.544897 4.636996
x-y        1.434678 1.4733941 -3.908782 1.161724
(x+y)/2    1.143892 0.8608821 -2.314829 3.520472

\$cor
cor      wcor
(x,y) 0.5764257 0.2634895

PairedData documentation built on May 1, 2019, 6:49 p.m.