This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This shows how to get the random slopes and CI's for each level in a hierarchical model | |
#dataset used | |
head(iris) | |
#what we want to investigate | |
#Is there a general relationship? and how it differs by species | |
plot(iris$Sepal.Width ~ iris$Petal.Width, col = iris$Species, las =1) | |
#Our model with random slope and intercept |