runmlwin ordinal

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
ali482002
Posts: 39
Joined: Fri Jan 30, 2015 7:14 am

runmlwin ordinal

Post 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
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: runmlwin ordinal

Post by ChrisCharlton »

Can you confirm that you do have a variable called cons in your data?
ali482002
Posts: 39
Joined: Fri Jan 30, 2015 7:14 am

Re: runmlwin ordinal

Post 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
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: runmlwin ordinal

Post 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
Post Reply