Factor variable and MCMC
Posted: Wed Oct 16, 2013 5:49 am
Hi,
I am using the bang.dta dataset
If I make urban a factor variable i.urban and do pql2 I obtain a coefficient.
If I then run with mcmc(on) initsprevious
a message appears "The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button."
This occurs after I first press Resume Macro
The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button.
This is a demonstration. I have a factor variable with 11 levels, but the above prevents me from running MCMC.
I am using Windows XP SP3, MlWin 2.26 and runmlwin 31 Jul 2013
Kind regards, Garry
I am using the bang.dta dataset
If I make urban a factor variable i.urban and do pql2 I obtain a coefficient.
If I then run with mcmc(on) initsprevious
a message appears "The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button."
This occurs after I first press Resume Macro
Code: Select all
use "http://www.bristol.ac.uk/cmm/media/runmlwin/bang.dta", clear
. runmlwin use cons i.urban, ///
level2(district: cons)
level1(woman:)
discrete(distribution(binomial) link(logit) denom(cons) pql2)
. runmlwin use cons i.urban,
level2(district: cons)
level1(woman:)
discrete(distribution(binomial) link(logit) denom(cons) )
mcmc(on) initsprevious maxit(50)
The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button.
Code: Select all
r(198);
I am using Windows XP SP3, MlWin 2.26 and runmlwin 31 Jul 2013
Kind regards, Garry