I've copied and pasted several chunks of code below where I can see errors. The two school-level variables I'm attempting to include are school average KS1 and KS2 scores (for 150 schools) which are normally distributed, albeit left-skewed. There are approximately 4 schools with missing KS1 and KS2 averages. Hopefully the code will be meaningful, but I can provide more if that would be helpful. I also downloaded the imputed datasets from these runs (with the school-level variables included), and the results are implausible for the level 1 variables with missing data.

Code: Select all

```
INFO:root:Compiling Model...
INFO:root:Running ..\..\..\eStat\bin\Release\eStat.exe
Index not valid integer Input string was not in a correct format.
Index not valid integer Input string was not in a correct format.
Index not valid integer Input string was not in a correct format.
Deterministic child has parent which is neither stochastic nor deterministic nor matrix element.
Deterministic child has parent which is neither stochastic nor deterministic nor matrix element.
Deterministic child has parent which is neither stochastic nor deterministic nor matrix element.
Deterministic child has parent which is neither stochastic nor deterministic nor matrix element.
Deterministic child has parent which is neither stochastic nor deterministic nor matrix element.
ERROR:root:sigma2_u2:
ERROR:root:0.0103558776067
ERROR:root:tau:
ERROR:root:nan
ERROR:root:sigma2_u1:
ERROR:root:0.0115536092272
ERROR:root:sigma2_u3:
ERROR:root:0.0281587281314
ERROR:root:deviance:
ERROR:root:nan
ERROR:root:u1:
ERROR:root:[ nan nan nan nan nan nan nan nan nan
ERROR:root:sigma2:
ERROR:root:nan
ERROR:root:tau has a non finite value, aborting
{'estoptions': {'Engine': 'eStat', 'nchains': '1', 'thinning': '1', 'burnin': '5000', 'defaultalg': 'Yes', 'iterations': '10000', 'outdata': 'imp4', 'makepred': 'No', 'seed': '4', 'defaultsv': 'Yes'}, 'invars': {'D': 'Normal', 'storeresid': 'No', 'C3': 'group', 'C2': 'school', 'y': 'post', 'x': 'cons,treatment,pre,ks1,schoolks2', 'C1': 'ta', 'NumLevs': '3'}, 'template': 'NLevelMod', 'dataset': 'CompleteData'}
Done
Exception in thread Thread-8:
Traceback (most recent call last):
File "c:\Python27\lib\threading.py", line 801, in __bootstrap_inner
File "c:\Python27\lib\threading.py", line 754, in run
File "O:\repo\stat-jr\src\lib\EStat\engines\Python.py", line 13, in execpy
File "<string>", line 400, in <module>
File "O:\repo\stat-jr\src\lib\EStat\engines\Engine.py", line 21, in __getitem__
KeyError: 'Chains'
```