Skip to contents

Data from Fernando et al.

Usage

data_fernando

Format

An object of class data.frame with 9 rows and 2 columns.

Source

Fernando et al. (1983). Identifying All Connected Subsets In A Two-Way Classification Without Interaction. J. of Dairy Science, 66, 1399-1402. Table 1. https://doi.org/10.3168/jds.S0022-0302(83)81951-1

Details

A dataframe with 2 treatment factors. The treatment combinations form 2 disconnected groups.

Examples

library(lfe)
#> Loading required package: Matrix
cbind(data_fernando,
      .group=con_check(data_fernando, ~ gen + herd))
#>   gen herd .group
#> 1  G2   H1      2
#> 2  G1   H1      2
#> 3  G1   H3      2
#> 4  G6   H3      2
#> 5  G3   H2      1
#> 6  G4   H2      1
#> 7  G5   H2      1
#> 8  G5   H4      1
#> 9  G7   H4      1
library(connected)
set.seed(42)
data_fernando = transform(data_fernando,
  y=stats::rnorm(9, mean=100))
con_view(data_fernando, y ~ gen*herd, cluster=FALSE,
  main = "Fernando unsorted")
#> Warning: There are 2 groups

con_view(data_fernando, y ~ gen*herd, main="Fernando clustered")
#> Warning: There are 2 groups