Package: AcceptReject 0.1.2
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).
Authors:
AcceptReject_0.1.2.tar.gz
AcceptReject_0.1.2.zip(r-4.5)AcceptReject_0.1.2.zip(r-4.4)AcceptReject_0.1.2.zip(r-4.3)
AcceptReject_0.1.2.tgz(r-4.4-x86_64)AcceptReject_0.1.2.tgz(r-4.4-arm64)AcceptReject_0.1.2.tgz(r-4.3-x86_64)AcceptReject_0.1.2.tgz(r-4.3-arm64)
AcceptReject_0.1.2.tar.gz(r-4.5-noble)AcceptReject_0.1.2.tar.gz(r-4.4-noble)
AcceptReject_0.1.2.tgz(r-4.4-emscripten)AcceptReject_0.1.2.tgz(r-4.3-emscripten)
AcceptReject.pdf |AcceptReject.html✨
AcceptReject/json (API)
NEWS
# Install 'AcceptReject' in R: |
install.packages('AcceptReject', repos = c('https://prdm0.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/prdm0/acceptreject/issues
monte-carlomonte-carlo-simulationrejection-samplingstatistics-library
Last updated 6 months agofrom:469f88f6b0. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 21 2024 |
R-4.5-win-x86_64 | OK | Nov 21 2024 |
R-4.5-linux-x86_64 | OK | Nov 21 2024 |
R-4.4-win-x86_64 | OK | Nov 21 2024 |
R-4.4-mac-x86_64 | OK | Nov 21 2024 |
R-4.4-mac-aarch64 | OK | Nov 21 2024 |
R-4.3-win-x86_64 | OK | Nov 21 2024 |
R-4.3-mac-x86_64 | OK | Nov 21 2024 |
R-4.3-mac-aarch64 | OK | Nov 21 2024 |
Exports:accept_rejectinspectqqplot
Dependencies:assertthatclicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmenumDerivpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangscalesscattermoretibbleutf8vctrsviridisLitewithr
Acceptance and rejection method
Rendered fromaccept_reject.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-05-06
Started: 2024-04-08
It works for any univariate distribution
Rendered fromit_works_for_any_univariate_distribution.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-05-22
Started: 2024-05-21
QQ-Plot
Rendered fromqqplot.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-05-06
Started: 2024-05-06
Specifying a base probability density function
Rendered frominspect.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-04-14
Started: 2024-04-14
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Acceptance-Rejection Method | accept_reject |
Inspecting the theoretical density with the base density | inspect |
Plot Accept-Reject | plot.accept_reject |
Print method for accept_reject objects | print.accept_reject |
QQ-Plot QQ-Plot between observed quantiles and theoretical quantiles. | qqplot |
QQ-Plot Plot the QQ-Plot between observed quantiles and theoretical quantiles. | qqplot.accept_reject |