Learn R Programming

PairedData (version 1.1.1)

Anorexia: Anorexia data from Pruzek & Helmreich (2009)

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

data(Anorexia)

Arguments

Format

A dataframe with 17 rows and 2 numeric columns:

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

References

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

See Also

anorexia in MASS

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab