Multivariate Ordered regression: error matrix dimensions
Posted: Tue Aug 21, 2012 7:30 am
Hello,
I have ordinal responses (i), of respondents (ii) within universities (iii).
Since I have missing completely at random responses, I don't need imputation.
I use MLwiN to create the "ASCII text file output"
I open the Realcom program for factor structural model, open the file and name the columns, setting "university" as level-2 identifier.
I set responses and explanatory variables (included 'cons').
However, when I run the MCMC I receive the following error messages (I just copy the first lines):
"error using ==> times
Matrix dimensions must agree
error in Y predict at 10
(...) "
the same error messages occur with a simpler test file, which is the following (if it can help):
QUESTION1 QUESTION2 QUESTION3 COUNTRY CONS AGE WEALTH
1 1 0 1 1 34 156
2 0 1 1 1 35 159
3 1 2 1 1 36 157
4 1 1 1 1 37 160
0 2 2 1 1 38 158
2 1 2 2 1 39 161
2 3 3 2 1 40 159
2 0 4 2 1 41 162
2 0 0 2 1 42 160
3 4 1 2 1 43 163
3 0 2 3 1 44 161
4 4 4 3 1 45 158
4 4 3 3 1 46 155
1 4 4 3 1 47 152
0 0 1 3 1 48 149
3 1 3 4 1 49 146
3 0 3 4 1 50 143
4 4 3 4 1 51 140
1 4 0 4 1 52 137
2 4 0 4 1 53 134
please, what is the problem?
a second question: how can i specify that one of my explanatory variable is categorical?
many thanks!
Marco
I have ordinal responses (i), of respondents (ii) within universities (iii).
Since I have missing completely at random responses, I don't need imputation.
I use MLwiN to create the "ASCII text file output"
I open the Realcom program for factor structural model, open the file and name the columns, setting "university" as level-2 identifier.
I set responses and explanatory variables (included 'cons').
However, when I run the MCMC I receive the following error messages (I just copy the first lines):
"error using ==> times
Matrix dimensions must agree
error in Y predict at 10
(...) "
the same error messages occur with a simpler test file, which is the following (if it can help):
QUESTION1 QUESTION2 QUESTION3 COUNTRY CONS AGE WEALTH
1 1 0 1 1 34 156
2 0 1 1 1 35 159
3 1 2 1 1 36 157
4 1 1 1 1 37 160
0 2 2 1 1 38 158
2 1 2 2 1 39 161
2 3 3 2 1 40 159
2 0 4 2 1 41 162
2 0 0 2 1 42 160
3 4 1 2 1 43 163
3 0 2 3 1 44 161
4 4 4 3 1 45 158
4 4 3 3 1 46 155
1 4 4 3 1 47 152
0 0 1 3 1 48 149
3 1 3 4 1 49 146
3 0 3 4 1 50 143
4 4 3 4 1 51 140
1 4 0 4 1 52 137
2 4 0 4 1 53 134
please, what is the problem?
a second question: how can i specify that one of my explanatory variable is categorical?
many thanks!
Marco