getTer: Calculate Mean of the nondecision distribution.

Description Usage Arguments Details Value

View source: R/getTer.R

Description

Calculate Mean of the nondecision distribution.

Usage

1

Arguments

res

An object of class D*M.

data

The data object used to create res.

formula

Optional formula argument, for when columns names in the data are different from those used to obtain the results.

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 subtracting 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.

Value

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


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