Learn R Programming

RunuranGUI (version 0.3)

unuran.gui: A GUI for the UNU.RAN random variate generators.

Description

Starts a GUI that allows to build generators for non-uniform random variates interactively for quite arbitrary distributions.

Usage

unuran.gui(envir=parent.frame())

Arguments

envir

the environment in which generator object and other requested data is stored.

Details

The GUI allows to build and (to some extend) analyse generators or quite arbitrary distributions. This is done in three stages:

Stage 1:

Select type of distribution (continuous or discrete) and genertion method (automatic, inversion, rejection, or select a particular algorithm). In addition one can pick a distribution from a list of built-in ones or decide to define a distribution from scratch.

Stage 2:

Provide parameters for built-in distributions or required information (like the density) for user-defined distributions. In addition the domain of the distribution can be truncated. Furthermore, default parameters for the selected methods may be modified.

Stage 3 (optional):

Show R code that creates generator object and properties of this ‘Runuran’ object. In addition it is possible to perform some tests (like goodness-of-fit tests) on the generator. Notice, however, that these tests ar not available for all types of generators. E.g., approximation errors are only shown for methods that are based on numerical inversion.

Examples

Run this code
# NOT RUN {
## start GUI to Runuran random number generator
unuran.gui()
# }

Run the code above in your browser using DataLab