VPC ordered multinomial (logit)

Welcome to the forum for MLwiN users. Feel free to post your question about MLwiN software 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!

Remember to check out our extensive software FAQs which may answer your question: http://www.bristol.ac.uk/cmm/software/s ... port-faqs/
Post Reply
pmb12bat
Posts: 1
Joined: Mon May 25, 2015 1:24 pm

VPC ordered multinomial (logit)

Post by pmb12bat »

Hello!

I am trying to calculate the VPC for an ordered multinomial model with a logit link function. I used the threshold method (where the level-1-variance is restricted to pi^2/3), but I would also like to use the vpc.txt-macro. However, I alwasy get an error message for line 3:

calc c153=(~c151)*.c1098
pick 1 c153 b2
calc c153=(~c152)*.omega(2)*.c152
pick 1 c153 b4
seed 1
nran 5000 c154
calc c154=alog(c154*b4^0.5+b2)
aver c154 b1 b3 b2
calc c154=c154*(1-c154)
aver c154 b5 b1
calc b8=b2^2/(b1+b2^2)

---------------------------
Error detected by MLN
---------------------------

error while obeying batch file C:\...\mln125F.tmp at line number 3:
calc c153=(~c152)*.omega(2)*.c152

Dî.
---------------------------
OK
---------------------------

I put 1,0,0,0 into variable c151 and 1 into variable 152 (on the basis of the description for binomial models in the MLwiN manual) and I'm pretty sure I'm doing something wrong here. I'd appreciate if you could point me in the right direction.

Thank you very much!
Petra
billb
Posts: 157
Joined: Fri May 21, 2010 1:21 pm

Re: VPC ordered multinomial (logit)

Post by billb »

Hi Petra,
MLwiN fits multinomial models in a somewhat different way to a standard binomial logistic model - in particular it uses an additional level below individual to capture the pattern of the multinomial response (in the ordered case a series of 1s and 0s indicating which threshold the true value is bigger than) and so you cannot simply take the VPC macro as is and translate to the multinomial context.
I hope that helps or at least explains why you are having difficulty.
Best wishes,
Bill.
Post Reply