Page 1 of 1

runmlwin ordinal

Posted: Fri Jan 30, 2015 7:58 pm
by ali482002
Hi
I am trying to fit a two level ordinal model using runmlwin in stata with the following syntax, but I get this message " variable cons not found (error in option denominator())" . As I new with runmlwin would you please give me any suggestions.

runmlwin V_outcome5 cons V_SEXID V_job, level2( TheKey: cons ) level1( V_id:) discrete(dist(multinomial) link(ologit) denom(cons)) nopause


Best Wishes,
Ali

Re: runmlwin ordinal

Posted: Fri Jan 30, 2015 8:39 pm
by ChrisCharlton
Can you confirm that you do have a variable called cons in your data?

Re: runmlwin ordinal

Posted: Fri Jan 30, 2015 10:08 pm
by ali482002
ChrisCharlton wrote:Can you confirm that you do have a variable called cons in your data?
yes, but there is no variable with "cons" name.
I re-installed runmlwin again and try many times to fit the model, but I get the "mismatch" error! would you please help me.
Regards

Re: runmlwin ordinal

Posted: Fri Jan 30, 2015 10:11 pm
by ChrisCharlton
If your constant isn't called cons you will need to provide its name instead. Alternative you can create a cons variable with the command:

Code: Select all

gen cons = 1