Learn R Programming

PairedData (version 0.9.1)

summary: Summary statistics for paired samples

Description

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

Usage

## S3 method for class 'paired':
summary(object)

Arguments

object
an object of class paired.

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.

Examples

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

Run the code above in your browser using DataLab