Internal function to extract moments

extract_moment(theta, model_function, ...)

Arguments

theta

\(\theta\) parameter

model_function

Function that should be used to transform \(\theta\) parameter into moment conditions

...

Additional arguments for loss function

Value

Mismatch between theoretical and sample moments