The model looks correctly defined to me.
you have 140 firms, which are internally split into lists of arrays
>>> len(mod.exog_li)
140
>>> mod.endog_li[0]
array([ 13.1516, 12.3018, 12.8395, 13.8039, 14.2897, 14.8681, 13.7784])
>>> dat[:8]
Unnamed: 0 firm year sector emp wage capital output
0 1 1 1977 7 5.041 13.1516 0.5894 95.707199
1 2 1 1978 7 5.600 12.3018 0.6318 97.356903
2 3 1 1979 7 5.015 12.8395 0.6771 99.608299
3 4 1 1980 7 4.715 13.8039 0.6171 100.550100
4 5 1 1981 7 4.093 14.2897 0.5076 99.558098
5 6 1 1982 7 3.166 14.8681 0.4229 98.615097
6 7 1 1983 7 2.936 13.7784 0.3920 100.030100
7 8 2 1977 7 71.319 14.7909 16.9363 95.707199
>>>
The problem is somewhere in the updating of the AR parameter, not with
the model AFAICS
Josef
>
> Vincent
>