getPdfs: (Re)Calculate model densities with given parameters and time...

Description Usage Arguments Value

View source: R/getPdfs.R

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

1
2
3
4
5
6
7
8
getPdfs(
  resDecision,
  tt,
  pars,
  DstarM = TRUE,
  fun.density = Voss.density,
  args.density = list()
)

Arguments

resDecision

output of estDstarM.

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.


DstarM documentation built on Aug. 29, 2020, 1:06 a.m.