{
  "_id": "6aace5353d719c1f84072b12",
  "Package": "AcceptReject",
  "Title": "Acceptance-Rejection Method for Generating Pseudo-Random\nObservations",
  "Version": "0.1.2",
  "Authors@R": "c(\nperson(\"Pedro Rafael D.\", \"Marinho\", , \"pedro.rafael.marinho@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-1591-8300\")),\nperson(\"Vera Lucia Damasceno\", \"Tomazella\", , \"vera@ufscar.br\", role = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0002-6780-2089\"))\n)",
  "Description": "Provides a function that implements the\nacceptance-rejection method in an optimized manner to generate\npseudo-random observations for discrete or continuous random\nvariables. Proposed by von Neumann J. (1951),\n<https://mcnp.lanl.gov/pdf_files/>, the function is optimized\nto work in parallel on Unix-based operating systems and\nperforms well on Windows systems. The acceptance-rejection\nmethod implemented optimizes the probability of generating\nobservations from the desired random variable, by simply\nproviding the probability function or probability density\nfunction, in the discrete and continuous cases, respectively.\nImplementation is based on references CASELLA, George at al.\n(2004) <https://www.jstor.org/stable/4356322>, NEAL, Radford M.\n(2003) <https://www.jstor.org/stable/3448413> and Bishop,\nChristopher M. (2006, ISBN: 978-0387310732).",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://prdm0.github.io/AcceptReject/",
  "BugReports": "https://github.com/prdm0/AcceptReject/issues/",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Repository": "https://prdm0.r-universe.dev",
  "Date/Publication": "2024-05-22 16:00:52 UTC",
  "RemoteUrl": "https://github.com/prdm0/AcceptReject",
  "RemoteRef": "HEAD",
  "RemoteSha": "469f88f6b0655b00cba660acc50e1402765d46e6",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-18 06:45:00 UTC",
    "User": "root"
  },
  "Author": "Pedro Rafael D. Marinho [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1591-8300>),\nVera Lucia Damasceno Tomazella [ctb] (ORCID:\n<https://orcid.org/0000-0002-6780-2089>)",
  "Maintainer": "Pedro Rafael D. Marinho <pedro.rafael.marinho@gmail.com>",
  "_user": "prdm0",
  "_type": "src",
  "_file": "AcceptReject_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/d9907fd876a39437861f36ec187367e25ba0b0147d4d75915b98e260fdfb7fbd",
  "_filesize": 15973790,
  "_sha256": "d9907fd876a39437861f36ec187367e25ba0b0147d4d75915b98e260fdfb7fbd",
  "_expires": "2026-12-27T07:16:02.000Z",
  "_created": "2026-09-18T06:45:00.000Z",
  "_published": "2026-09-18T07:16:05.739Z",
  "_jobs": [
    {
      "job": 105508523522,
      "time": 134,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10536011154"
    },
    {
      "job": 105508523523,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10536026111"
    },
    {
      "job": 105508523576,
      "time": 129,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10534927547"
    },
    {
      "job": 105508523553,
      "time": 213,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10535701097"
    },
    {
      "job": 105508523525,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10535773034"
    },
    {
      "job": 105508523676,
      "time": 196,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10535603062"
    },
    {
      "job": 105508523585,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10536300953"
    },
    {
      "job": 105508523598,
      "time": 322,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10536220117"
    },
    {
      "job": 105507646493,
      "time": 232,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10535017132"
    },
    {
      "job": 105508523450,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10535062447"
    },
    {
      "job": 105508523587,
      "time": 347,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10534943045"
    },
    {
      "job": 105508523717,
      "time": 120,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10535157300"
    },
    {
      "job": 105508523551,
      "time": 163,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10535641044"
    },
    {
      "job": 105508523610,
      "time": 353,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10535606317"
    },
    {
      "job": 105508523519,
      "time": 111,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10535337115"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307",
  "_status": "success",
  "_upstream": "https://github.com/prdm0/AcceptReject",
  "_commit": {
    "id": "469f88f6b0655b00cba660acc50e1402765d46e6",
    "author": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "committer": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "message": "Update vignette\n",
    "time": 1716393652
  },
  "_maintainer": {
    "name": "Pedro Rafael D. Marinho",
    "email": "pedro.rafael.marinho@gmail.com",
    "login": "prdm0",
    "orcid": "0000-0003-1591-8300",
    "description": "PhD in Statistics and R/Python Language Enthusiast",
    "uuid": 4948384
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "scattermore",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "tictoc",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "prdm0",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "monte-carlo",
    "monte-carlo-simulation",
    "rejection-sampling",
    "statistics-library",
    "cpp"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "prdm0",
      "count": 68,
      "uuid": 4948384
    }
  ],
  "_userbio": {
    "uuid": 4948384,
    "type": "user",
    "name": "Pedro Rafael",
    "followers": 123,
    "description": "PhD in Statistics and R/Python Language Enthusiast"
  },
  "_downloads": {
    "count": 605,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/AcceptReject"
  },
  "_devurl": "https://github.com/prdm0/acceptreject",
  "_pkgdown": "https://prdm0.github.io/AcceptReject/",
  "_searchresults": 11,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/AcceptReject.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/prdm0/acceptreject",
  "_realowner": "prdm0",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-04-11"
    },
    {
      "version": "0.1.1",
      "date": "2024-04-24"
    },
    {
      "version": "0.1.2",
      "date": "2024-05-07"
    }
  ],
  "_exports": [
    "accept_reject",
    "inspect",
    "qqplot"
  ],
  "_help": [
    {
      "page": "accept_reject",
      "title": "Acceptance-Rejection Method",
      "topics": [
        "accept_reject"
      ]
    },
    {
      "page": "inspect",
      "title": "Inspecting the theoretical density with the base density",
      "topics": [
        "inspect"
      ]
    },
    {
      "page": "plot.accept_reject",
      "title": "Plot Accept-Reject",
      "topics": [
        "plot.accept_reject"
      ]
    },
    {
      "page": "print.accept_reject",
      "title": "Print method for accept_reject objects",
      "topics": [
        "print.accept_reject"
      ]
    },
    {
      "page": "qqplot",
      "title": "QQ-Plot QQ-Plot between observed quantiles and theoretical quantiles.",
      "topics": [
        "qqplot"
      ]
    },
    {
      "page": "qqplot.accept_reject",
      "title": "QQ-Plot Plot the QQ-Plot between observed quantiles and theoretical quantiles.",
      "topics": [
        "qqplot.accept_reject"
      ]
    }
  ],
  "_pkglogo": "https://github.com/prdm0/AcceptReject/raw/HEAD/logo.png",
  "_readme": "https://github.com/prdm0/AcceptReject/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "numDeriv",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "scattermore",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "accept_reject.Rmd",
      "filename": "accept_reject.html",
      "title": "Acceptance and rejection method",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Understanding the Method",
        "Installation and loading the package",
        "Using the accept_reject Function",
        "Examples",
        "Generating discrete observations",
        "Generating continuous observations",
        "Accessing metadata"
      ],
      "created": "2024-04-08 14:36:06",
      "modified": "2024-05-06 19:21:53",
      "commits": 7
    },
    {
      "source": "it_works_for_any_univariate_distribution.Rmd",
      "filename": "it_works_for_any_univariate_distribution.html",
      "title": "It works for any univariate distribution",
      "engine": "knitr::rmarkdown",
      "headings": [
        "It works for any univariate distribution",
        "Modified Beta Weibull distribution",
        "Modified Beta Gamma distribution"
      ],
      "created": "2024-05-21 22:54:51",
      "modified": "2024-05-22 16:00:52",
      "commits": 5
    },
    {
      "source": "qqplot.Rmd",
      "filename": "qqplot.html",
      "title": "QQ-Plot",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Quantile-Quantile Plot",
        "General usage format:",
        "Examples",
        "Discrete case",
        "Continuous case"
      ],
      "created": "2024-05-06 19:21:53",
      "modified": "2024-05-06 19:21:53",
      "commits": 1
    },
    {
      "source": "inspect.Rmd",
      "filename": "inspect.html",
      "title": "Specifying a base probability density function",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Example of inspection"
      ],
      "created": "2024-04-14 18:56:22",
      "modified": "2024-04-14 20:20:50",
      "commits": 2
    }
  ],
  "_score": 4.643452676486188,
  "_indexed": true,
  "_nocasepkg": "acceptreject",
  "_universes": [
    "prdm0"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-18T06:47:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/efce8eb1e513413ddeb4d6700fffc3fec94d9b1b54bca74de390984dab03f779",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-18T06:47:29.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/75d221f58093bbb5a19861687b929b73b35999dcbfbce50dd888fa269fdb18bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-18T06:47:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/5a56e9a6a6efb73fcc3fe08e905c94b30450971500f05853bea59e60055ff0b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-18T06:48:24.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/b2ef6360283209d727f1ab105417f5504de6a2a1fc800d44943acf0243038512",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-09-18T07:08:54.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/b8eeb65c4294a9fb5e999147a33b35b17b14cf1d06199f165bf1ed18a6216434",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-09-18T07:07:47.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/052d52a39c148fbaffc48d13e164a05a742a4207a8f688043082102ec365e8d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-09-18T07:14:19.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/4ff7e2f14fa641e42d8e7e909bb63e6901336e247ff865ca5fff032cc5b9cb1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-09-18T07:06:30.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/d549e1cc04d58c5624800b78865fc2191020bc0a74be1bdb7c5ea9e855d3acbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-09-18T06:47:30.000Z",
      "arch": "emscripten",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/a226584d90d02c9b49f40f255bfcc478bf371b54885226ed6f81b4a7520aedcf",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-18T06:49:55.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/aec8c2f8fa57eefd05937dbd3501d8c3a780d1189708710651a284cc6bd14cdd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-18T06:46:21.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/047c8592338baf77c180a6bf269b227e7b0ff7ea5565f3a9a6372ffac4e2b414",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-18T06:47:06.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/210ddfc7491aee31c6b83608adb63b71d7891109b6e5b41d6a2f544e80845e63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-18T06:50:11.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/36021c2f1221ddbdc2e1ae47ec15dc07cfed219e688c9dd557249057e27317ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-18T06:46:23.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/906fb1bafcf1e99ecef1193bda8cc30e18829ed1fde7a0bd959f604f8d022428",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/35315969307"
    }
  ]
}