HierarchicalData: A simulated hierarchical analysis

Description Usage Format References Examples

Description

This data is simulated an experiment that has some hierachical nesting and the treatment is not applied at the observation level, but rather at some higher blocking level. This is a plant response experiment where there are 9 rings, three of which are randomly assigned to treatment A, three assigned to treatment B and the final 3 to treatment C. Within each ring, we observe six individual plants. So we have 6*9=54 observations, but the plants are nested within the ring.

Usage

1

Format

A data frame with 54 rows and 4 variables:

Ring

A categorical varible (1,...,9) denoting which ring the observation was from.

Trt

A categorical variable (A,B,C) denoting what treatment was applied.

Rep

A number from (1,2,...,6) denoting which replicate within a ring.

y

The response variable.

References

This dataset was inspired by: Evans et al (2014) Greater ecosystem carbon in the Mojave Desert after ten years exposure to elevated CO2. Nature Climate Change 4(5): 394-397.

Examples

1
2
3
library(ggplot2)
ggplot(HierarchicalData, aes(y=y, x=Ring, color=Trt)) +
  geom_point()

dereksonderegger/dsData documentation built on Nov. 22, 2020, 5:15 p.m.