Both Evaluate0 and EvaluateEx0 calculate the discrepancy function. EvaluateEx0 has the additional side effect of calculating derived estimates (implied moments, indirect effects, factor score weights, and so forth), which can subsequently be retrieved using GetEstimates or GetEstimatesEx.
Syntax
object.Evaluate0 (ind, f)
object.EvaluateEx0 (ind, f)
The Evaluate0 and EvaluateEx0 method syntaxes have the following parts:
Part |
Description |
object |
An object of type AmosEngine. |
ind |
A variable of type Integer. On return, ind=0 if the discrepancy function is defined at the current parameter values. ind<>0 if the discrepancy function is undefined. |
f |
A variable of type Double. On return, if ind=0, f is the value of the discrepancy function evaluated at the current parameter values. |
Placement: [3].
Remarks
Evaluate0 and EvaluateEx0 evaluate the discrepancy function at the current parameter values, which can be retrieved using ParameterValue or ParameterVector, and which can be set using PutParameterValue or PutParameterVector.