AcceptReject: Acceptance-Rejection Method for Generating Pseudo-Random Observations

Provides a function that implements the acceptance-rejection method in an optimized manner to generate pseudo-random observations for discrete or continuous random variables. Proposed by von Neumann J. (1951), <https://mcnp.lanl.gov/pdf_files/>, the function is optimized to work in parallel on Unix-based operating systems and performs well on Windows systems. The acceptance-rejection method implemented optimizes the probability of generating observations from the desired random variable, by simply providing the probability function or probability density function, in the discrete and continuous cases, respectively. Implementation is based on references CASELLA, George at al. (2004) <https://www.jstor.org/stable/4356322>, NEAL, Radford M. (2003) <https://www.jstor.org/stable/3448413> and Bishop, Christopher M. (2006, ISBN: 978-0387310732).

Package details

AuthorPedro Rafael D. Marinho [aut, cre] (<https://orcid.org/0000-0003-1591-8300>), Vera Lucia Damasceno Tomazella [ctb] (<https://orcid.org/0000-0002-6780-2089>)
MaintainerPedro Rafael D. Marinho <pedro.rafael.marinho@gmail.com>
LicenseGPL (>= 3)
Version0.1.2
URL https://prdm0.github.io/AcceptReject/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("AcceptReject")

Try the AcceptReject package in your browser

Any scripts or data that you put into this service are public.

AcceptReject documentation built on May 29, 2024, 11:18 a.m.