
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
echo "This script is deprecated!" | |
echo "Please visit http://lindemann09.github.io/jasp-linux-install/" |
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
######## | |
# Define a data generating function and generate some data | |
######## | |
library(MASS) | |
generate_data = function( | |
n # number of units of observation (ex. human participants in a cognitive science experiment) | |
, k # number of observations made within each condition within each unit | |
, noise # standard deviation of measurement noise | |
, I # population intercept | |
, sI # across-units standard deviation of intercepts |