Skip to content

WienR

0.3-17Package record

Derivatives of the First-Passage Time Density and Cumulative Distribution Function, and Random Sampling from the (Truncated) First-Passage Time Distribution

1packages dependsuggested by 2
7.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

First, we provide functions to calculate the partial derivative of the first-passage time diffusion probability density function (PDF) and cumulative distribution function (CDF) with respect to the first-passage time t (only for PDF), the upper barrier a, the drift rate v, the relative starting point w, the non-decision time t0, the inter-trial variability of the drift rate sv, the inter-trial variability of the rel. starting point sw, and the inter-trial variability of the non-decision time st0. In addition the PDF and CDF themselves are also provided. Most calculations are done on the logarithmic scale to make it more stable. Since the PDF, CDF, and their derivatives are represented as infinite series, we give the user the option to control the approximation errors with the argument 'precision'. For the numerical integration we used the C library cubature by Johnson, S. G. (2005-2013) https://github.com/stevengj/cubature. Numerical integration is required whenever sv, sw, and/or st0 is not zero. Note that numerical integration reduces speed of the computation and the precision cannot be guaranteed anymore. Therefore, whenever numerical integration is used an estimate of the approximation error is provided in the output list. Note: The large number of contributors (ctb) is due to copying a lot of C/C++ code chunks from the GNU Scientific Library (GSL). Second, we provide methods to sample from the first-passage time distribution with or without user-defined truncation from above. The first method is a new adaptive rejection sampler building on the works of Gilks and Wild (1992; doi:10.2307/2347565) and Hartmann and Klauer (in press). The second method is a rejection sampler provided by Drugowitsch (2016; doi:10.1038/srep20490). The third method is an inverse transformation sampler. The fourth method is a "pseudo" adaptive rejection sampler that builds on the first method. For more details see the corresponding help files.

Install

Health

CRAN checks
13OK
Slowest check: 2.9 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3-17
READMENoVignettesNoNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
23
Examples that run
100%23 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
96%

Downloads

7.3K
CRAN downloads in the past year
Rank #3,376 · ~20/day · ~610/mo
Daily download trend is not available in this view yet.
2K30 days
3.3K90 days
7.3K1 year
Compare downloads with other packages →
Also on402 r2u3 autocran92 c2d4u

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)

Installing WienR adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (9)
Author, Maintainer since 0.1-9 (2021)
Copyright holder, Author, Contributor, Thesis advisor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Releases (14)

Pick two releases to compare their code metrics.

Show 5 earlier eventsHide 5 earlier events
  • 0.2-1
    record
    2021-08-20 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2-0
    record
    2021-05-12 · diff ↗
  • 0.1-9
    record
    2021-05-07
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-05-07
Total releases
14 / 5 yrs
License
GPL (>= 2) OSI
Download size
68 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("WienR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for WienR version 0.3-17 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy