Learn R Programming

dRiftDM (version 0.3.1)

pdfs: Access the Probability Density Functions of a Model

Description

Functions to obtain the probability density functions (PDFs) of a model. These PDFs represent the convolution of the first-passage-time (decision time) with the non-decision time.

Usage

pdfs(object, ...)

# S3 method for drift_dm pdfs(object, ...)

# S3 method for fits_agg_dm pdfs(object, ...)

Value

A list with the entries:

  • pdfs, contains another named list with entries corresponding to the conditions of the model (see conds()). Each of these elements is another named list, containing the entries pdf_u and pdf_l, which are numeric vectors for the PDFs of the upper and lower boundary, respectively.

  • t_vec, containing a numeric vector of the time domain.

Arguments

object

an object of type drift_dm or fits_agg_dm (see estimate_dm()).

...

additional arguments passed down to the specific method.

Details

If the model has not been evaluated, re_evaluate_model() is called before returning the PDFs.

See Also

drift_dm(), re_evaluate_model(), conds()

Examples

Run this code
# get a pre-built model for demonstration purpose
a_model <- dmc_dm()
str(pdfs(a_model))

Run the code above in your browser using DataLab