Learn R Programming

PASWR2 (version 1.0.5)

HSWRESTLER: High School Wrestlers

Description

The body fat percentage of 78 high school wrestlers was measured using three separate techniques, and the results are stored in the data frame HSWRESTLER. The techniques used were hydrostatic weighing (hwfat), skin fold measurements (skfat), and the Tanita body fat scale (tanfat).

Usage

HSWRESTLER

Arguments

Format

A data frame with 78 observations on the following 9 variables:

  • age (age of wrestler in years)

  • ht (height of wrestler in inches)

  • wt (weight of wrestler in pounds)

  • abs (abdominal fat)

  • triceps (tricep fat)

  • subscap (subscapular fat)

  • hwfat (hydrostatic measure of percent fat)

  • tanfat (Tanita measure of percent fat)

  • skfat (skin fold measure of percent fat)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
FAT <- c(HSWRESTLER$hwfat, HSWRESTLER$tanfat, HSWRESTLER$skfat)
GROUP <- factor(rep(c("hwfat", "tanfat", "skfat"), rep(78, 3)))
BLOCK <- factor(rep(1:78, 3))
friedman.test(FAT ~ GROUP | BLOCK)
rm(FAT, BLOCK, GROUP)
ggplot(data = HSWRESTLER, aes(x = tanfat, y = hwfat, color = age)) + geom_point() + 
geom_smooth() + labs(x = "Tanita measure of percent fat", 
y = "hydrostatic measure of percent fat")

# }

Run the code above in your browser using DataLab