About multilevel truncated models

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
johnsoncat
Posts: 2
Joined: Wed Jan 18, 2012 9:35 am

About multilevel truncated models

Post by johnsoncat »

Greetings,

I would appreciate your advice on the following. There are the commands 'tpossion' and 'tnbreg' in Stata to implement the single-level truncated Poisson model and the single-level truncated negative binomial model. (However, as far as I know, we cannot do these models in MLwin directly. ) So, how can I implement a multilevel truncated Poisson model or a multilevel truncated negative binomial model in runmlwin?
What's more, just the same question in implementing multilevel zero-inflated models.
Thanks.
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: About multilevel truncated models

Post by GeorgeLeckie »

Hi John,

In terms of count models, you can only do multilevel poisson and negative binomial models in MLwiN.

You can't do truncated or zero-inflated versions of these models.

What you could attempt is to specify your model a multilevel poisson model and then request MLwiN to generate the the winbugs model statement and assocated files for you.

You could then tweak the winbugs model statement to incorporate the truncated or zero-inflated part. You will have to explore the WinBUGS manuals to work out how to do this.

http://www.mrc-bsu.cam.ac.uk/bugs/winbu ... ents.shtml

You can use the winbugs suite of Stata commands to run your modified model in WinBUGS and to pull the results back.

http://www2.le.ac.uk/departments/health ... s_main.pdf

You can also use the mcmcsum which we have written (bundled with runmlwin) which can also analyse the MCMC chains pulled back from WinBUGS.

Best wishes

George
johnsoncat
Posts: 2
Joined: Wed Jan 18, 2012 9:35 am

Re: About multilevel truncated models

Post by johnsoncat »

[quote="GeorgeLeckie"]

Hi George,

Thank you for all your assistance. I truly appreciate your help in resolving the problem. ^-^
Post Reply