Hi! does anyone know why I get an error message (see below) when I try to run a multinomial logit with one explanatory variable. How can I correct this?
thanks!
G0520 : Arguments not conformable [dcmnlogit.src, line 547]
File dcmnlogit.src, line 547, in dcMultinomialLogit
dcout1.marginvc = putArray(dcout1.marginvc,i,jb*out1.moment*jb');
1 Answer
0
Replace the line:
dcout1.marginvc = putArray(dcout1.marginvc,i,jb*out1.moment*jb');
with this and you should be able to run the model with one explanatory variable.
if rows(jb) == 1; local __marginvc_tmp; __marginvc_tmp = dcout1.marginvc; setarray __marginvc_tmp, i, jb*out1.moment*jb'; dcout1.marginvc = __marginvc_tmp; else; dcout1.marginvc = putArray(dcout1.marginvc,i,jb*out1.moment*jb'); endif;
Your Answer
1 Answer
0
Replace the line:
dcout1.marginvc = putArray(dcout1.marginvc,i,jb*out1.moment*jb');
with this and you should be able to run the model with one explanatory variable.
if rows(jb) == 1; local __marginvc_tmp; __marginvc_tmp = dcout1.marginvc; setarray __marginvc_tmp, i, jb*out1.moment*jb'; dcout1.marginvc = __marginvc_tmp; else; dcout1.marginvc = putArray(dcout1.marginvc,i,jb*out1.moment*jb'); endif;