getPdfs {DstarM} | R Documentation |
(Re)Calculate model densities with given parameters and time grid
Description
This function is a convenience function for calculating model pdfs for
multiple sets of parameters at a specified timegrid. If resDecision
is supplied,
the density function and any additional arguments for the density function will be
extracted from that object. If pars
is missing these will also be extracted from
this object. This function is intended to recalculate model densities at a new timegrid.
Usage
getPdfs(
resDecision,
tt,
pars,
DstarM = TRUE,
fun.density = Voss.density,
args.density = list()
)
Arguments
resDecision |
output of |
tt |
Time grid to calculate the model densities on. |
pars |
Model parameters, can be a matrix where every column is a set of parameters. |
DstarM |
Logical. Do the model pdfs also describe the nondecision distribution? |
fun.density |
density function to calculate pdfs from. |
args.density |
Additional arguments for fun.density |
Value
A matrix containing model pdfs.
[Package DstarM version 0.4.0 Index]