| Distribution Simulations {NCStats} | R Documentation |
Dynamically demonstrates the effect of parameter choices on the shape of the PDF and CDF for the given distribution.
sbeta(show.both=TRUE,show.mnsd=TRUE) sbinom(show.both=TRUE,show.mnsd=TRUE) schisq(show.both=TRUE,show.mnsd=TRUE) sexp(show.both=TRUE,show.mnsd=TRUE) sf(show.both=TRUE,show.mnsd=TRUE) sgamma(show.both=TRUE,show.mnsd=TRUE) sgeom(show.both=TRUE,show.mnsd=TRUE) shyper(show.both=TRUE,show.mnsd=TRUE) slnorm(show.both=TRUE,show.mnsd=TRUE) snbinom(show.both=TRUE,show.mnsd=TRUE) snorm(show.both=TRUE,show.mnsd=TRUE) spois(show.both=TRUE,show.mnsd=TRUE) st(show.both=TRUE,show.mnsd=TRUE)
show.both |
logical; if TRUE (default) then show both the PDF and CDF, else just the PDF. |
show.mnsd |
logical; if TRUE (default) then show the mean and standard deviation on the PDF. |
A graphic will be produced that is connected to a slider bar where the user can change the parameters of the distribution. The real-time updating of the graphic allows the user to determine the effect of changing each parameter on the shape, mean, and standard deviation of the distribution.
None, but a dynamic graphic with slider bars will be produced.
On first call a dialog box with sliders will appear in the upper-left corner of the R window. A graphic will not be seen until an item in the dialog box is changed. At this time, the dialog box will appear to disappear. However, it has simply been minimized and can be reaccessed as all minimized programs are accessed. This “bug” only appears when the function is started and upon first change of an item in the dialog box.
Derek H. Ogle, dogle@northland.edu
vis.binom, vis.gamma, vis.normal,and vis.t of the TeachingDemos package. Also see dbeta, dbinom, dchisq, etc.
## Not run by examples(). Copy and try in an interactive R session ## Not run: sbeta() ## Not run: sbinom() ## Not run: schisq() ## Not run: sexp() ## Not run: sf() ## Not run: sgamma() ## Not run: sgeom() ## Not run: shyper() ## Not run: slnorm() ## Not run: snbinom() ## Not run: snorm() ## Not run: spois() ## Not run: st()