getTer {DstarM} | R Documentation |
Calculate Mean of the nondecision distribution.
Description
Calculate Mean of the nondecision distribution.
Usage
getTer(res, data, formula = NULL)
Arguments
res |
An object of class D*M. |
data |
The data object used to create |
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.
[Package DstarM version 0.4.0 Index]