View source: R/teaching_utils.R
sampdist | R Documentation |
Generate a sampling distribution from a statistics applied to samples generated from a normal distribution.
sampdist(n, mean = 0, sd = 1, B = 1000, FUN)
n |
sample size |
mean |
the mean of the normal distribution |
sd |
the standard deviation of the normal distribution |
B |
the number of simulations |
FUN |
the function to be applied to each sample |
a vector of length B with the sampling distribution
sampdist(30, 0, 1, B = 10, FUN = mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.