# GMM estimation error

**URL:** <https://forum.dynare.org/t/gmm-estimation-error/20790>\
**Category:** SMM/GMM/IRF-Matching\
**Created:** [25 July 2022 21:55 UTC](https://forum.dynare.org/t/gmm-estimation-error/20790 "2022-07-25T21:55:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![turtleman](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@turtleman](https://forum.dynare.org/u/turtleman)\
**Post date:** [25 July 2022 21:55 UTC](https://forum.dynare.org/t/gmm-estimation-error/20790/1 "2022-07-25T21:55:35Z")

</div>

Hello,

I am trying to estimate the elasticity of substitution of labor across different sectors using GMM, but am encountering some errors.

I think the main error is the following.

“Error using dseries/extract (line 91)  
dseries::extract: Variable ellh is not a member of o!”

What does this error mean?

I’ve attached the relevant files below.

Thank you.

[model\_220725.mod](https://forum.dynare.org/uploads/short-url/dqND96vyqroa7cdVLp0OiVXRnAL.mod) (2.2 KB)  
[setup.m](https://forum.dynare.org/uploads/short-url/x1TySmjiHBC7fhEwBbi30h6bJdc.m) (762 Bytes)  
[GMM\_data.csv](https://forum.dynare.org/uploads/short-url/tJ9kgsuwfDuCrZzc0ymyqnDuAWC.csv) (1.8 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 July 2022 07:46 UTC](https://forum.dynare.org/t/gmm-estimation-error/20790/2 "2022-07-26T07:46:17Z")

</div>

The `steadystate.m` is missing.

---

<div class="post-metadata">

**Author:** ![turtleman](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@turtleman](https://forum.dynare.org/u/turtleman)\
**Post date:** [26 July 2022 14:44 UTC](https://forum.dynare.org/t/gmm-estimation-error/20790/3 "2022-07-26T14:44:10Z")

</div>

Oh right, sorry about that. Here it is.

[steadystate.m](https://forum.dynare.org/uploads/short-url/g5oxltAA1ltWckjMeokjDCOSKwo.m) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 July 2022 15:36 UTC](https://forum.dynare.org/t/gmm-estimation-error/20790/4 "2022-07-26T15:36:57Z")

</div>

Your `csv`-file contains a unicode byte order mark at the beginning that throws off Matlab.
