Search found 8 matches

by hamzah734
Sat Mar 02, 2019 11:06 am
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

Re: How to replicate Stata do-file of MLRA using "runmlwin", please advise

Dear Chris, What are the differences between the command for a simple logistic regression model below *The code for a simple logistic regression model. * run with IGLS runmlwin psycmed cons male ib(first).agegroup poor, /// level2(neigh: cons) level1(id: ) discrete(distribution(binomial) link(logit...
by hamzah734
Fri Mar 01, 2019 1:10 am
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

Re: How to replicate Stata do-file of MLRA using "runmlwin", please advise

Dear Chris, Thank you for your knowledge. I just read forcesort . Other - (R)IGLS and MCMC forcesort. forces the data to be sorted according to the model hierarchy forcesort forces the data sent to MLwiN to be sorted according to the model hierarchy. We recommend that users sort their data manually...
by hamzah734
Thu Feb 28, 2019 11:26 am
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

Re: How to replicate Stata do-file of MLRA using "runmlwin", please advise

Dear Chris, In the next stage . * Model s009 . * run with RIGLS to create starting values . runmlwin psycmed cons i.agegroup male poor, level2(neigh: cons) level1(id: ) discrete(distribution(binomial) link(logit) denom(cons)) rigls mlwinsettings(optimat) nopause the problem which I face are: note: 1...
by hamzah734
Thu Feb 28, 2019 11:03 am
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

Re: How to replicate Stata do-file of MLRA using "runmlwin", please advise

Thank you very much, i just saw mlwinsettings(optimat) at https://www.bristol.ac.uk/cmm/media/runmlwin/3.3.do and I have a little bit change the *.do file below . * Model s008 . * run with RIGLS to create starting values . runmlwin psycmed cons i.agegroup male poor, level1(id: ) discrete(distributio...
by hamzah734
Thu Feb 28, 2019 9:57 am
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

Re: How to replicate Stata do-file of MLRA using "runmlwin", please advise

Dear Chris, Thank you very much for your great feedback. Based on your direction, I have read how to save Stata dataset as MLwiN worksheet (savewsz) at http://fmwww.bc.edu/RePEc/bocode/s/savewsz.html Besides, I have created Stata do-file to replicate all analyses using runmlwin which I obtained from...
by hamzah734
Fri Feb 22, 2019 2:28 pm
Forum: runmlwin user forum
Topic: How to replicate Stata do-file of MLRA using "runmlwin", please advise
Replies: 11
Views: 26387

How to replicate Stata do-file of MLRA using "runmlwin", please advise

Hello everyone, I am a new user of MLwiN and multilevel modelling too. I am writing an article both 2-level model and the 3-level model, which inspired by a great paper: An Original Stepwise Multilevel Logistic Regression Analysis (MLRA) of Discriminatory Accuracy: The Case of Neighbourhoods and He...
by hamzah734
Thu Jan 11, 2018 10:40 am
Forum: runmlwin user forum
Topic: Do I need to sort the data before running runmlwin?
Replies: 4
Views: 7999

Re: Do I need to sort the data before running runmlwin?

Dear George, Thank you very much for your nice feedback. I have compared some fit model below. Y is dependent variable in a categoric x1 to x 21 is dependent variable in a categoric at level 1 / Micro level/id level x22 to x25 is dependent variable in a continuous at level 2 / Marco level/district l...
by hamzah734
Sat Jan 06, 2018 9:01 pm
Forum: runmlwin user forum
Topic: Do I need to sort the data before running runmlwin?
Replies: 4
Views: 7999

Re: Do I need to sort the data before running runmlwin?

I have made command below used Stata 14 gen cons = 1 gen id = _n runmlwin malaria cons, level2(district: cons) level1(id:) discrete(distribution(binomial) link(logit) denominator(cons)) however, I found the notification The data must be sorted according to the order of the model hierarchy: district ...