R code for simulation examples of basic statistical tests
Tables 2x2.R: R code for simulating Type 1 error and Power for 2x2 tables Statistical tests used: Chi-square test, Fisher's exact
Power Continuous vs Dichotomization [Gaussian data].R: R code power calculation of continuous data. Difference in power between (a) using a t-test, and (b) dichotomization of your data. Statistical tests used: Student t-test, Fisher's exact