More on the topic of for() loops! This week, Ellis Hughes and I discuss how you can use nested for() loops (a loop within a loop) to create simulations of data and test models on the simulations, while storing all of the outputs in lists. This approach is useful for researchers that need to build simulations of data and models to try and obtain grant funding or to provide methodology details for pre-registration.
To watch the screen cast, CLICK HERE.
To access our code, CLICK HERE.