getTer(res, dat)
res
.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.