Learn R Programming

PairedData (version 0.5)

paired.summary: Summary statistics for paired samples

Description

Classical and robust statistics (location and scale) for paired samples

Usage

paired.summary(x,y)

Arguments

x
First sample
y
Second sample

Value

  • A table with four rows corresponding to calculations for x, y, x-y and (x+y)/2 variables. The location and scale statistics are given in columns.
  • nSample size
  • meanMean
  • medianMedian
  • trimTrimmed mean (tr=0.2)
  • sdStandard deviation
  • IQRInterquartile range (standardised to be consistent with the sd in the normal case)
  • median adMedian of absolute deviations (standardised)
  • mean adMean of absolute deviations (standardised)
  • sd(w)Winsorised standard deviation (tr=0.2 and standardised)
  • minMinimum value
  • maxMaximum value

See Also

summary

Examples

Run this code
z<-rnorm(20)
x<-rnorm(20)+z
y<-rnorm(20)+z+1
paired.summary(x,y)

Run the code above in your browser using DataLab