Parameter expansion introducing bias?

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
StuRussell
Posts: 2
Joined: Wed Aug 19, 2015 2:20 pm

Parameter expansion introducing bias?

Post by StuRussell »

Hi all. I'm not sure if I can get my question across in an understandable way, so please tell me if I'm making no sense!

I'm running a 3-level logistic model with a single binary outcome via runmlwin. Nicely-sized dataset. No cross-classification. Binary observations occur at regular intervals but the individual exits the study once the outcome is 1 - similar to a discrete-time survival model. The first observation occurs in all individuals, but the 10th observation occurs much less frequently (732 observations distributed across 732 individuals in 109 highest-level groups). I ran it as recommended - first pql then MCMC, using orthogonal option. I had also included parameter expansion at one of the levels.

When I was playing with the model in Stata, residuals at level 2 and 3 looked fine. I checked model fit by simulating expected probabilities for the sample data (the long-hand way - gen p = invlogit(_b[_Ixxx]*_Ixxx +... + v0 + u0), where v0 and u0 are residuals at levels 3 and 2). I was getting mean estimates that were very much higher than the observed probability, particularly for higher observation numbers. The ratio of predicted to mean observed data increased linearly with observation number. Either I have very biased level-1 residuals, or I got the prediction equation wrong.
graph1.png
graph1.png (27.73 KiB) Viewed 4786 times
When I run the model in pql, or in MCMC without parameter expansion and predict using exactly the same equation, I get non-biased probability predictions and level-1 residuals.

I had assumed the model equation I should use in Stata would be as shown in MLwiN interface, but my guess is that I should be including alphas created by parameter expansion to get my predictions right. I have no idea where I might find these. I could just ignore parameter expansion entirely, but my trajectories wouldn't thank me.

All thoughts welcomed.

Cheers,

Stuart
Last edited by StuRussell on Wed Aug 19, 2015 4:54 pm, edited 1 time in total.
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Parameter expansion introducing bias?

Post by GeorgeLeckie »

Hi Stuart,

Please will you post the runmlwin comand and output for your model with and then without parameter expansion?

Many thanks

George
Post Reply