Learn R Programming

DstarM (version 0.1.0)

getTer: Calculate Mean of the nondecision distribution.

Description

Calculate Mean of the nondecision distribution.

Usage

getTer(res, dat)

Arguments

res
An object of class D*M.
dat
The data object used to create res.

Value

A vector containing estimates for the mean of the nondecision densities.

Details

The object res can either be output from estDstarM or output from estND. If the former is supplied it is also necessary to supply the data used for the estimation. The mean will then be estimated by substracting the mean of the model densities from the mean of the data density. If the latter is supplied than this is not required; the mean will be calculated by integrating the nondecision distribution.