1/7/2020
as a starting point for further investigation
rinse and repeat
Take data, calculate one scalar that describes how they differ.
## Loading required package: pwr
## Warning in qt(sig.level/tside, nu, lower = FALSE): NaNs produced
## Sample size and effect
## Loading required package: shiny
## Loading required package: shinythemes
## PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
It is known that an effect exists in the population.
In a pilot study, a difference between groups was observed.
Group 1: n = 22, M = 5.68, SD = 0.98.
Group 2: n = 23, M = 6.28, SD = 1.11.
p < 0.05
When you replicate the study in a same way what is the chance you will observe a statistically significant result?
Plan the analysis AHEAD
Write this down and ideally publish (aspredicted.org).
## [1] 0.006071701
## The lowest p-value was observed at sample size 100
## The p-value dropped below 0.05 for the first time as sample size 73
## :( p = 0.1158312 ## ## :( p = 0.6854975 ## ## :( p = 0.5361662 ## ## :( p = 0.7272989 ## ## :( p = 0.5463914 ## ## (^.^) p = 0.03822513 ## ## :( p = 0.3950347 ## ## :( p = 0.8122609 ## ## :( p = 0.4110737 ## ## :( p = 0.4119823 ## ## :( p = 0.6676723 ## ## :( p = 0.4533229 ## ## :( p = 0.4525323 ## ## :( p = 0.1470071 ## ## (._.) p = 0.07287707 ## ## :( p = 0.2670293 ## ## :( p = 0.5607152 ## ## :( p = 0.7337348 ## ## :( p = 0.448781 ## ## (^.^) p = 0.04090435 ## ## :( p = 0.7119981 ## ## (._.) p = 0.05451528 ## ## :( p = 0.9858737 ## ## :( p = 0.1108632 ## ## :( p = 0.8522585 ## ## (._.) p = 0.06048712 ## ## :( p = 0.5688637 ## ## :( p = 0.3202356 ## ## :( p = 0.9092101 ## ## :( p = 0.1441345 ## ## :( p = 0.1768541 ## ## :( p = 0.760798 ## ## :( p = 0.433823 ## ## :( p = 0.780449 ## ## :( p = 0.4140463 ## ## :( p = 0.2232231 ## ## (^.^) p = 0.02855 ## ## :( p = 0.6863586 ## ## :( p = 0.7007114 ## ## :( p = 0.3517176 ## ## :( p = 0.4920222 ## ## :( p = 0.7887199 ## ## :( p = 0.9718164 ## ## :( p = 0.200618 ## ## :( p = 0.5945487 ## ## :( p = 0.5550135 ## ## :( p = 0.5398895 ## ## :( p = 0.1877556 ## ## :( p = 0.5488533 ## ## :( p = 0.4419479 ## ## :( p = 0.142162 ## ## :( p = 0.7735385 ## ## :( p = 0.3882965 ## ## :( p = 0.7543358 ## ## :( p = 0.2755101 ## ## :( p = 0.8318198 ## ## :( p = 0.2879396 ## ## :( p = 0.8695526 ## ## (^.^) p = 0.01357314 ## ## :( p = 0.7738423 ## ## :( p = 0.9191245 ## ## :( p = 0.2141243 ## ## :( p = 0.1889315 ## ## (^.^) p = 0.01612838 ## ## :( p = 0.9375521 ## ## :( p = 0.2964957 ## ## :( p = 0.5809294 ## ## :( p = 0.915115 ## ## (^.^) p = 0.03597982 ## ## :( p = 0.5658116 ## ## :( p = 0.9163458 ## ## :( p = 0.2520798 ## ## :( p = 0.8350342 ## ## :( p = 0.4300955 ## ## :( p = 0.3148625 ## ## :( p = 0.2250195 ## ## :( p = 0.9043926 ## ## :( p = 0.1137421 ## ## :( p = 0.3017151 ## ## :( p = 0.9576115 ## ## :( p = 0.5287814 ## ## :( p = 0.9411985 ## ## :( p = 0.6118674 ## ## :( p = 0.108627 ## ## :( p = 0.5926454 ## ## :( p = 0.6983204 ## ## :( p = 0.9669818 ## ## :( p = 0.9780894 ## ## :( p = 0.8902916 ## ## :( p = 0.4054365 ## ## :( p = 0.8411379 ## ## :( p = 0.4896501 ## ## (._.) p = 0.07989834 ## ## :( p = 0.6973778 ## ## :( p = 0.7487406 ## ## :( p = 0.5448076 ## ## :( p = 0.1412426 ## ## :( p = 0.3644735 ## ## :( p = 0.9546028 ## ## :( p = 0.5940736
## [1] 0.0549
it DOES NOT mean that
it DOES mean that
it DOES NOT not mean that
it DOES mean that