Skip to content

Instantly share code, notes, and snippets.

@alstat
Created February 24, 2015 16:07
Show Gist options
  • Save alstat/0af7bfceae62e5c37115 to your computer and use it in GitHub Desktop.
Save alstat/0af7bfceae62e5c37115 to your computer and use it in GitHub Desktop.
y1 <- round(rnorm(n = 36, mean = 7, sd = 2)) # Simulate data from normal distribution
y2 <- round(rnorm(n = 36, mean = 21, sd = 6))
y3 <- round(rnorm(n = 36, mean = 50, sd = 8))
x <- rep(LETTERS[1:12], 3)
grp <- rep(c("Grp 1", "Grp 2", "Grp 3"), each = 12)
dat <- data.frame(grp, x, y1, y2, y3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment