PropSampler | R Documentation |
An app to explore the sampling distribution of the sample proportion. The user takes one sample at a time from a given population. Output to the console describes relevant features of the sample, and graphical output updates the empirical distribution of the sample proportion.
PropSampler(form,data,max.sample.size=110,show.sample=FALSE)
form |
An object of class formula, of the form ~x, where x is a factor from the data frame supplied by: |
data |
A dataframe, representing the imaginary population. |
max.sample.size |
Maximum sample size on the slider. |
show.sample |
If TRUE, the complete sample will be output to the console, in addition to the summary information. |
Graphical and numerical output.
Uses manipulate
.
Homer White hwhite0@georgetowncollege.edu
## Not run:
data(imagpop)
if (require(manipulate)) PropSampler(~cappun,data=imagpop)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.