Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Fabric

Measures of softness of ten different clothing garments washed with and without a softener


Description

Data for Example 7.21

Usage

Fabric

Format

A data frame/tibble with 20 observations on three variables

garment

a numeric vector

softner

a character variable with values with and without

softness

a numeric vector

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

wilcox.test(softness ~ softner, data = Fabric, 
            paired = TRUE, alternative = "greater")

## Not run: 
library(tidyr)
T7 <- tidyr::spread(Fabric, softner, softness) %>% 
mutate(di = with - without, adi = abs(di), rk = rank(adi), 
       srk = sign(di)*rk)
T7
t.test(T7$srk, alternative = "greater")

## End(Not run)

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.