Anorexia: Anorexia data from Pruzek & Helmreich (2009)

Description Usage Format Source References See Also Examples

Description

This dataset presents 17 paired data corresponding to the weights of girls before and after treatment for anorexia. A more complete version can be found in the package MASS. There is actually a cluster of four points in this dataset.

Usage

1

Format

A dataframe with 17 rows and 2 numeric columns:

[,1] Prior numeric weight (lbs) before therapy
[,2] Post numeric weight (lbs) after therapy

Source

Hand, D.J., McConway, K., Lunn, D. & Ostrowki, editors (1993) A Handbook of Small Data Sets. Number 232, 285. Chapman & Hall: New-York.

References

Pruzek & Helmreich (2009) Enhancing dependent sample analysis with graphics. Journal of Statistics Education, 17 (1).

See Also

anorexia in MASS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(Anorexia)

# Visualization of the cluster
with(Anorexia,plot(paired(Prior,Post),type="profile"))

# The effects of trimming or winsorizing 
# with 4 outliers (n=17)
17*0.2
with(Anorexia,summary(paired(Prior,Post)))
17*0.25
with(Anorexia,summary(paired(Prior,Post),tr=0.25))

Example output

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

[1] 3.4
$stat
           n      mean median      trim       sd  IQR (*) median ad (*)
Prior (x) 17 83.229412  83.30 83.236364 5.016693 4.077094       4.15128
Post (y)  17 90.494118  92.50 91.800000 8.475072 3.335804       4.00302
x-y       17 -7.264706  -9.00 -7.909091 7.157421 5.559674       6.07866
(x+y)/2   17 86.861765  88.75 87.250000 5.974099 3.965901       5.78214
          mean ad (*)     sd(w)    min   max
Prior (x)    4.659380  4.415165  73.40  94.2
Post (y)     7.468278 11.123568  75.20 101.6
x-y          6.907973  7.982357 -21.50   5.3
(x+y)/2      5.588307  7.207412  76.85  97.9

$cor
           cor      wcor
(x,y) 0.538203 0.6085899

[1] 4.25
$stat
           n      mean median      trim       sd  IQR (*) median ad (*)
Prior (x) 17 83.229412  83.30 83.255556 5.016693 4.077094       4.15128
Post (y)  17 90.494118  92.50 92.944444 8.475072 3.335804       4.00302
x-y       17 -7.264706  -9.00 -8.222222 7.157421 5.559674       6.07866
(x+y)/2   17 86.861765  88.75 87.577778 5.974099 3.965901       5.78214
          mean ad (*)    sd(w)    min   max
Prior (x)    4.659380 4.294331  73.40  94.2
Post (y)     7.468278 3.599547  75.20 101.6
x-y          6.907973 6.014919 -21.50   5.3
(x+y)/2      5.588307 4.413910  76.85  97.9

$cor
           cor      wcor
(x,y) 0.538203 0.4867171

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