Description Usage Arguments Details Value Examples
View source: R/sims-teaching.R
This function plots the null and actual distributions, highlights the rejection region and the power region, and allows the user to dynamically manipulate the effect size, standard deviation, sample size, and alpha to determine the effect of these parameters on power.
1 2 3 4 5 6 7 8 |
mu0 |
A single numeric that is the null hypothesized mean |
s.mua |
A single numeric that is the starting value for the actual population mean |
s.sigma |
A single numeric that is the starting value for the actual population standard deviation |
s.n |
A single numeric that is the starting value for the sample size |
s.alpha |
A single numeric that is the starting value for alpha |
lower.tail |
A single logical that indicates if the rejection region is into the lower tail or not |
If the user is using RStudio and the manipulate package is installed then the dynamic graph is produced in the “Plots” pane of RStudio. The plot controls may be accessed through the “gear” that is in the upper-left corner of the plot.
None, but a dynamic graphic with sliders is produced (if using RStudio).
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.