Description Usage Arguments Details Value Examples
View source: R/sims-teaching.R
This function demonstrates the concept of confidence regions by drawing a large number of random samples from a known normal distribution, computing a confidence interval for each sample, and plotting those confidence intervals. Sliders then let the user change the level of confidence, the sample size, or the type of confidence region (interval or bound) to see how that effects the confidence interval widths (margin-of-error) and capture probability.
1 |
reps |
A single numeric that indicates the number of replicate samples to draw from the population |
method |
A single string that indicates whether to make confidence intervals using a normal ( |
mu |
A single numeric that indicates the mean of the known normal distribution |
sigma |
A single numeric that indicates the standard deviation of the known normal distribution |
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 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.