- A Shiny App was created to visualize statistical power as plotted under a Gaussian curve
- Power is the probability of rejecting the null hypothesis when it is false
- When designing experiments, more Statistical Power is better
- Users can manipulate input parameters to visualize the effect on power
- Power formula: \(P(\frac{mu_a-mu_0}{sigma/\sqrt{n}})\)
- R code:
z<-qnorm(1-alpha) pnorm(mu0+z*sigma/sqrt(n),mean = mua,sd = sigma/sqrt(n),lower.tail = FALSE)