Remember, the simulation allows us to do something we can’t do in real life: Determine in advance the size of some effect we want to measure using an experiment. Doing this is useful because we can see what can happen if the world is exactly the way we think it is. The world is rarely if ever this way, but having this kind of control is a great check on our assumptions.
Here, we want to simulate a small effect size to see what a meta-analysis might yield in a situation where there is really an effect, but it’s small.
Enter data for the Sample size, Mean difference between A and B, the low and high values for your confidence interval (CI), and a study identifier you choose. I just used ‘gilmore-01’ for my first simulation.
Change the sample size to another value (not the default n=75). Report your data and change your study identifier.
Either keep the same sample size and hit the ‘regenerate’ button or change the sample size. When you change the sample size, the simulation will automatically regenerate new data. Report those data in the Google Form.
Set-up
We load the packages we will use.
library('ggplot2')library('dplyr')
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union