Problem runmlwing for binomial logistic regressions
Posted: Wed Oct 15, 2014 7:28 am
Hi there,
Im a new user of runmlwin through STATA and I am following the runmlwin manual. I'm using MLwin version 2.30 and STATA version 13.1
I have the following problem:
In STATA, adding an i. in front of the variable name (e.g. i.percrimecat) tells the program to treat the variable as categorical. Otherwise is treated as continuous.
However, MLwin keeps crushing on binomial logistic regression models if I use i.percrimecat instead of percrimecat in the code lines below
quietly runmlwin aawlktotguide cons percrimecat, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons) pql2) nopause
runmlwin aawlktotguide cons percrimecat, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons)) mcmc(on) initsprevious nopause nogroup
My colleague is running a linear regresion model in runmlwing and does not seem to have this problem for continuous outcome analyses.
The Mlwin manual tells users to generate dummy variables for each category within a variable of interest instead and uses these to run the model in MLwin. I tried doing this too as shown below, but MLwin keeps crushing.
gen percrimeLow = (percrimecat==1)
gen percrimeMedium = (percrimecat==2)
gen percrimeHigh = (percrimecat==3)
quietly runmlwin aawlktotguide cons percrimeLow percrimeMedium percrimeHigh, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons) pql2) nopause
runmlwin aawlktotguide cons percrimeLow percrimeMedium percrimeHigh, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons)) mcmc(on) initsprevious nopause nogroup
I would be most grateful if you could please suggest a solution.
Cheers,
Fatima.
Im a new user of runmlwin through STATA and I am following the runmlwin manual. I'm using MLwin version 2.30 and STATA version 13.1
I have the following problem:
In STATA, adding an i. in front of the variable name (e.g. i.percrimecat) tells the program to treat the variable as categorical. Otherwise is treated as continuous.
However, MLwin keeps crushing on binomial logistic regression models if I use i.percrimecat instead of percrimecat in the code lines below
quietly runmlwin aawlktotguide cons percrimecat, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons) pql2) nopause
runmlwin aawlktotguide cons percrimecat, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons)) mcmc(on) initsprevious nopause nogroup
My colleague is running a linear regresion model in runmlwing and does not seem to have this problem for continuous outcome analyses.
The Mlwin manual tells users to generate dummy variables for each category within a variable of interest instead and uses these to run the model in MLwin. I tried doing this too as shown below, but MLwin keeps crushing.
gen percrimeLow = (percrimecat==1)
gen percrimeMedium = (percrimecat==2)
gen percrimeHigh = (percrimecat==3)
quietly runmlwin aawlktotguide cons percrimeLow percrimeMedium percrimeHigh, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons) pql2) nopause
runmlwin aawlktotguide cons percrimeLow percrimeMedium percrimeHigh, level2(cd2006:cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons)) mcmc(on) initsprevious nopause nogroup
I would be most grateful if you could please suggest a solution.
Cheers,
Fatima.