Open drpetersen opened 8 years ago
If I understand right, this is perhaps a symptom of the fact that missing values on outcomes are not supported. I hesitate, because I can imagine instances in which one imputes a predictor (instead of an outcome) and the same issue might arise.
I'll mark this nevertheless as a feature request, because it's not yet a supported structure.
Thanks for the detailed example.
Fair enough, that makes sense, thank you.
Following your explanation, I tried to find an example where the same issue arises with missings in predictors only, but actually couldn't come up with one (yet). If I do, I'll report back.
First of all, thank you very much for your extremely well written and insightful book and the accompanying software package, which has already changed my 'statistical life'.
I was trying to use map2stan for solving a multilevel CFA, and in the course of that endeavour, came across a problem which I will try to demonstrate with the following minimal working example (the original CFA model is no longer recognizable from this, of course):
It seems like in the data declaration of the group index,
int grp[N_z];
, a wrong symbol,N_z
, is given for the array size, which probably should beN_grp
, declared in the stancode. This is not really a problem unlessz
contains missing values, because in that case,N_z
will no longer be declared in the stancode and that code will not run any more:I tried to find my way around the source code of map2stan, but don't really feel up to fixing that. Thanks for looking into this issue. If I can be of any further help, please let me know.