Learn R Programming

connected (version 1.1)

data_fernando: Data from Fernando et al.

Description

Data from Fernando et al.

Usage

data_fernando

Arguments

Format

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

Details

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

Examples

Run this code
library(lfe)
cbind(data_fernando,
      .group=con_check(data_fernando, ~ gen + herd))
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")
con_view(data_fernando, y ~ gen*herd, main="Fernando clustered")

Run the code above in your browser using DataLab