{
  "_id": "6a13f100acfb0bcc41d30866",
  "Package": "WienR",
  "Version": "0.3-16",
  "Title": "Derivatives of the First-Passage Time Density and Cumulative\nDistribution Function, and Random Sampling from the (Truncated)\nFirst-Passage Time Distribution",
  "Authors@R": "c(person(\"Raphael\", \"Hartmann\", email = \"raphael.hartmann@protonmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Karl C.\", \"Klauer\", email=\"christoph.klauer@psychologie.uni-freiburg.de\", role=c(\"cph\", \"aut\", \"ctb\", \"ths\")),\nperson(\"Steven G.\", \"Johnson\", email=\"stevenj@math.mit.edu\", role=c(\"ctb\")),\nperson(\"Jean M.\", \"Linhart\", email=\"jlinhart@stata.com\", role=c(\"ctb\")),\nperson(\"Brian\", \"Gough\", role=c(\"ctb\")),\nperson(\"Gerard\", \"Jungman\", role=c(\"ctb\")),\nperson(\"Rudolf\", \"Schuerer\", role=c(\"ctb\")),\nperson(\"Przemyslaw\", \"Sliwa\", role=c(\"ctb\")),\nperson(\"Jason H.\", \"Stover\", role=c(\"ctb\")))",
  "Author": "Raphael Hartmann [aut, cre], Karl C. Klauer [cph, aut, ctb,\nths], Steven G. Johnson [ctb], Jean M. Linhart [ctb], Brian\nGough [ctb], Gerard Jungman [ctb], Rudolf Schuerer [ctb],\nPrzemyslaw Sliwa [ctb], Jason H. Stover [ctb]",
  "Maintainer": "Raphael Hartmann <raphael.hartmann@protonmail.com>",
  "NeedsCompilation": "yes",
  "Description": "First, we provide functions to calculate the partial\nderivative of the first-passage time diffusion probability\ndensity function (PDF) and cumulative distribution function\n(CDF) with respect to the first-passage time t (only for PDF),\nthe upper barrier a, the drift rate v, the relative starting\npoint w, the non-decision time t0, the inter-trial variability\nof the drift rate sv, the inter-trial variability of the rel.\nstarting point sw, and the inter-trial variability of the\nnon-decision time st0. In addition the PDF and CDF themselves\nare also provided. Most calculations are done on the\nlogarithmic scale to make it more stable. Since the PDF, CDF,\nand their derivatives are represented as infinite series, we\ngive the user the option to control the approximation errors\nwith the argument 'precision'. For the numerical integration we\nused the C library cubature by Johnson, S. G. (2005-2013)\n<https://github.com/stevengj/cubature>. Numerical integration\nis required whenever sv, sw, and/or st0 is not zero. Note that\nnumerical integration reduces speed of the computation and the\nprecision cannot be guaranteed anymore. Therefore, whenever\nnumerical integration is used an estimate of the approximation\nerror is provided in the output list. Note: The large number of\ncontributors (ctb) is due to copying a lot of C/C++ code chunks\nfrom the GNU Scientific Library (GSL). Second, we provide\nmethods to sample from the first-passage time distribution with\nor without user-defined truncation from above. The first method\nis a new adaptive rejection sampler building on the works of\nGilks and Wild (1992; <doi:10.2307/2347565>) and Hartmann and\nKlauer (in press). The second method is a rejection sampler\nprovided by Drugowitsch (2016; <doi:10.1038/srep20490>). The\nthird method is an inverse transformation sampler. The fourth\nmethod is a \"pseudo\" adaptive rejection sampler that builds on\nthe first method. For more details see the corresponding help\nfiles.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.3",
  "Repository": "https://raphaelhartmann.r-universe.dev",
  "Date/Publication": "2024-01-04 10:55:37 UTC",
  "RemoteUrl": "https://github.com/raphaelhartmann/wienr",
  "RemoteRef": "HEAD",
  "RemoteSha": "07724094c2db46495e523723401ee8a0e2faa24b",
  "Packaged": {
    "Date": "2026-05-25 06:45:37 UTC",
    "User": "root"
  },
  "MD5sum": "00efd26233c45bba0a3ac2946292d6c3",
  "_user": "raphaelhartmann",
  "_type": "src",
  "_file": "WienR_0.3-16.tar.gz",
  "_fileid": "a4e144e126b860d18000204abe7385ea4a99fd22ff8382102bcdebedfe2c402c",
  "_filesize": 244920,
  "_sha256": "a4e144e126b860d18000204abe7385ea4a99fd22ff8382102bcdebedfe2c402c",
  "_created": "2026-05-25T06:45:37.000Z",
  "_published": "2026-05-25T06:49:36.745Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77668845746,
      "time": 118,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7193116779"
    },
    {
      "job": 77668845751,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7193125770"
    },
    {
      "job": 77668845744,
      "time": 134,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7193119950"
    },
    {
      "job": 77668845749,
      "time": 103,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7193113763"
    },
    {
      "job": 77668845741,
      "time": 76,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193115204"
    },
    {
      "job": 77668845723,
      "time": 180,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193132637"
    },
    {
      "job": 77668845753,
      "time": 72,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193115173"
    },
    {
      "job": 77668845730,
      "time": 163,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193130852"
    },
    {
      "job": 77668581128,
      "time": 141,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193090914"
    },
    {
      "job": 77668845689,
      "time": 88,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193110378"
    },
    {
      "job": 77668845713,
      "time": 113,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7193115721"
    },
    {
      "job": 77668845729,
      "time": 94,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7193111614"
    },
    {
      "job": 77668845731,
      "time": 140,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7193122617"
    }
  ],
  "_buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/raphaelhartmann/wienr",
  "_commit": {
    "id": "07724094c2db46495e523723401ee8a0e2faa24b",
    "author": "Raphael Hartmann <raphael.hartmann@protonmail.com>",
    "committer": "Raphael Hartmann <raphael.hartmann@protonmail.com>",
    "message": "minor changes\n",
    "time": 1704365737
  },
  "_maintainer": {
    "name": "Raphael Hartmann",
    "email": "raphael.hartmann@protonmail.com",
    "login": "raphaelhartmann",
    "description": "",
    "uuid": 36821713
  },
  "_registered": true,
  "_dependencies": [],
  "_owner": "raphaelhartmann",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "raphaelhartmann",
      "count": 113,
      "uuid": 36821713
    }
  ],
  "_userbio": {
    "uuid": 36821713,
    "type": "user",
    "name": "Raphael"
  },
  "_downloads": {
    "count": 410,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/WienR"
  },
  "_devurl": "https://github.com/raphaelhartmann/wienr",
  "_searchresults": 8,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/WienR.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/raphaelhartmann/wienr",
  "_realowner": "raphaelhartmann",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-9",
      "date": "2021-05-07"
    },
    {
      "version": "0.2-0",
      "date": "2021-05-12"
    },
    {
      "version": "0.2-1",
      "date": "2021-08-20"
    },
    {
      "version": "0.2-2",
      "date": "2021-09-02"
    },
    {
      "version": "0.3-0",
      "date": "2021-11-25"
    },
    {
      "version": "0.3-4",
      "date": "2022-04-16"
    },
    {
      "version": "0.3-6",
      "date": "2022-04-23"
    },
    {
      "version": "0.3-7",
      "date": "2022-10-28"
    },
    {
      "version": "0.3-8",
      "date": "2023-01-26"
    },
    {
      "version": "0.3-9",
      "date": "2023-04-23"
    },
    {
      "version": "0.3-10",
      "date": "2023-05-23"
    },
    {
      "version": "0.3-14",
      "date": "2023-07-04"
    },
    {
      "version": "0.3-15",
      "date": "2023-11-29"
    }
  ],
  "_exports": [
    "daWienerCDF",
    "daWienerPDF",
    "ddWDM",
    "dpWDM",
    "dst0WienerCDF",
    "dst0WienerPDF",
    "dsvWienerCDF",
    "dsvWienerPDF",
    "dswWienerCDF",
    "dswWienerPDF",
    "dt0WienerCDF",
    "dt0WienerPDF",
    "dtWienerPDF",
    "dvWienerCDF",
    "dvWienerPDF",
    "dWDM",
    "dwWienerCDF",
    "dwWienerPDF",
    "gradWienerCDF",
    "gradWienerPDF",
    "pWDM",
    "qWDM",
    "rWDM",
    "sampWiener",
    "WienerCDF",
    "WienerPDF",
    "WienerQuant"
  ],
  "_help": [
    {
      "page": "daWienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the upper barrier",
      "topics": [
        "daWienerCDF"
      ]
    },
    {
      "page": "daWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the upper barrier",
      "topics": [
        "daWienerPDF"
      ]
    },
    {
      "page": "ddWDM",
      "title": "Wrapper function for the partial derivative of the first-passage time probability density function of the diffusion model",
      "topics": [
        "ddWDM"
      ]
    },
    {
      "page": "dpWDM",
      "title": "Wrapper function for the partial derivative of the first-passage time cumulative distribution function of the diffusion model",
      "topics": [
        "dpWDM"
      ]
    },
    {
      "page": "dst0WienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the inter-trial variability of the non-decision time",
      "topics": [
        "dst0WienerCDF"
      ]
    },
    {
      "page": "dst0WienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the inter-trial variability of the non-decision time",
      "topics": [
        "dst0WienerPDF"
      ]
    },
    {
      "page": "dsvWienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the inter-trial variability of the drift rate",
      "topics": [
        "dsvWienerCDF"
      ]
    },
    {
      "page": "dsvWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the inter-trial variability of the drift rate",
      "topics": [
        "dsvWienerPDF"
      ]
    },
    {
      "page": "dswWienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the inter-trial variability of the relative starting point",
      "topics": [
        "dswWienerCDF"
      ]
    },
    {
      "page": "dswWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the inter-trial variability of the relative starting point",
      "topics": [
        "dswWienerPDF"
      ]
    },
    {
      "page": "dt0WienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the non-decision time",
      "topics": [
        "dt0WienerCDF"
      ]
    },
    {
      "page": "dt0WienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the non-decision time",
      "topics": [
        "dt0WienerPDF"
      ]
    },
    {
      "page": "dtWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the first-passage time",
      "topics": [
        "dtWienerPDF"
      ]
    },
    {
      "page": "dvWienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the drift rate",
      "topics": [
        "dvWienerCDF"
      ]
    },
    {
      "page": "dvWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the drift rate",
      "topics": [
        "dvWienerPDF"
      ]
    },
    {
      "page": "dwWienerCDF",
      "title": "Partial derivative of the first-passage time cumulative distribution function of the diffusion model with respect to the relative starting point",
      "topics": [
        "dwWienerCDF"
      ]
    },
    {
      "page": "dwWienerPDF",
      "title": "Partial derivative of the first-passage time probability density function of the diffusion model with respect to the relative starting point",
      "topics": [
        "dwWienerPDF"
      ]
    },
    {
      "page": "gradWienerCDF",
      "title": "Gradient of the first-passage time cumulative distribution function",
      "topics": [
        "gradWienerCDF"
      ]
    },
    {
      "page": "gradWienerPDF",
      "title": "Gradient of the first-passage time probability density function",
      "topics": [
        "gradWienerPDF"
      ]
    },
    {
      "page": "sampWiener",
      "title": "Random sampling from the Wiener diffusion model",
      "topics": [
        "rWDM",
        "sampWiener"
      ]
    },
    {
      "page": "WienerCDF",
      "title": "First-passage time cumulative distribution function of the diffusion model",
      "topics": [
        "pWDM",
        "WienerCDF"
      ]
    },
    {
      "page": "WienerPDF",
      "title": "First-passage time probability density function of the diffusion model",
      "topics": [
        "dWDM",
        "WienerPDF"
      ]
    },
    {
      "page": "WienerQuant",
      "title": "First-passage time quantile function of the diffusion model",
      "topics": [
        "qWDM",
        "WienerQuant"
      ]
    }
  ],
  "_readme": "https://github.com/raphaelhartmann/wienr/raw/HEAD/README.md",
  "_rundeps": [],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.6532125137753435,
  "_indexed": true,
  "_nocasepkg": "wienr",
  "_universes": [
    "raphaelhartmann"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:42.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "2a514efadc5f83bffbb885e660aba0f5b677935ddf8dff9980ee21210bfba3b7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3-16",
      "date": "2026-05-25T06:48:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "90cb0b25a25e32843bbf4b0e326eef87a4409c14bd8dbb59480772225e852c57",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:58.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "607b3916bbff6359ccc83f7ac9c5b1ba3b203f8fc1e6c0b787e3ed08ec35735a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "1f3d3f68459c0045b905bc2673b788d7efa0d550f09e8e0da620ea8d8b393c13",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:40.000Z",
      "arch": "aarch64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "38a55713bd9d10c3a33de15f116330808f3c6e3a7cee989aab6997633cfad62d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3-16",
      "date": "2026-05-25T06:48:28.000Z",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "8cb7420cc6dec51ff0c649276c1cf92f177ef66d3bf94fa455472f4912b6a25e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:39.000Z",
      "arch": "aarch64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "27221f76ca5538e14fef56766e581c339251fe4d9d2e97b97c9bebdd1768e0e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3-16",
      "date": "2026-05-25T06:48:26.000Z",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "d061275d50d47244623e2752c85a9710acf8b7e9152ae22b7e15b865dd26f106",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:26.000Z",
      "arch": "emscripten",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "633b7256a4ff8cf61575d0cecb3286650ea352d5b26bc133fa50ad228e433b83",
      "status": "success",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3-16",
      "date": "2026-05-25T06:46:53.000Z",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "3f86c68725da5beb1cbac68dcd16a8fa919ac4b32285520d6ab67778e924e10b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3-16",
      "date": "2026-05-25T06:46:49.000Z",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "3f05e9c96219b4bfc9ee272e05d690701c44aff426bdfe8a4659f8960a7859ad",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3-16",
      "date": "2026-05-25T06:47:35.000Z",
      "arch": "x86_64",
      "commit": "07724094c2db46495e523723401ee8a0e2faa24b",
      "fileid": "6d48da745836da16b99ea0736c0265d79a62af4fd518b98759182f37f0e44028",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/raphaelhartmann/actions/runs/26387280685"
    }
  ]
}