# st: Gllamm errors

 From david reinstein To statalist@hsphsun2.harvard.edu Subject st: Gllamm errors Date Fri, 17 Apr 2009 18:00:57 +0100

```OK, I now figured out I may not have been using the most recent
version of Glamm. But with the newest version I still have problems.

When I start off with a command such as:

I can get it to run successfully with the "init" option:
gllamm investmentStage2 investment, i(id) nrf(1) family(gauss)
...but this just yields the results of the simple OLS regression: (reg
investmentStage2 investment_

So, I try to use these initial values to get further, and I get
. mat init=e(b)
. gllamm investmentStage2 investment, i(id) from(init) adoonly trace

General model information
------------------------------------------------------------------------------
dependent variable:         investmentStage2
family:                     gauss
equation for fixed effects  investment _cons
Random effects information for 2 level model
------------------------------------------------------------------------------

***level 1 equation:
log standard deviation
lns1: _cons

***level 2 (id) equation(s):
standard deviation of random effect
id1: _cons
r(111);

If I try it slightly differently:
gllamm investmentStage2 investment, i(id) from(init) trace
...I get
"
there are 0 values of likelihood, should be 150 ...
lnf equal to missing in last step ... initial values not feasible ...
(error occurred in ML computation) ... (use trace option and check
correctness of initial model)"

gllamm investmentStage2 investment, i(id) from(init) adapt trace

Any thoughts? I have been spending hours just to try to get Gllamm to
run somehow (to analyse experimental economic data)!

Once again, a list of some of the data follows.
-David

. list  id investment  investmentStage2  in 1/20

+---------------------------+
|  id   invest~t   invest~2 |
|---------------------------|
1. | 201          3          2 |
2. | 201          2          0 |
3. | 201          1          3 |
4. | 201          2          2 |
5. | 201          0          1 |
|---------------------------|
6. | 201          2          2 |
7. | 201          3          4 |
8. | 201          4          4 |
9. | 201          0          3 |
10. | 201          0          2 |
|---------------------------|
11. | 201          3          1 |
12. | 201          0          2 |
13. | 201          2          5 |
14. | 201          0          2 |
15. | 201          3          1 |
|---------------------------|
16. | 202          2          2 |
17. | 202          2          5 |
18. | 202          2          4 |
19. | 202          0          4 |
20. | 202          1          5 |
+---------------------------+

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```