Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: graphing predicted probabilities and confidence intervals with 'praccum'


From   Robert Lineira <[email protected]>
To   [email protected]
Subject   st: graphing predicted probabilities and confidence intervals with 'praccum'
Date   Thu, 14 Apr 2011 12:10:29 +0200

Hi all, I wanted to graph the predicted probabilities and confidence intervals of one of the outcomes in a multinomial model with two interactions.

My problem is that I do not know how to save the CI's using 'praccum' and to produce the graph.

Is it possible to do it?

Best,
Robert.


Find below the sintax

mlogit orga anac a10 ideol01 in1 in2 in4 in5 ideol0110 in110 in210 in410 in510 [pweight=p1002] if a1002==1, vce(cluster ccaa) base(1)

forvalues count = 0(.1) 1 {
       quietly prvalue, x(a10=0 ideol0110=0 in110=0 in210=0 in410=0 in510=0 ideol01=`count') rest(mean)
       praccum, using(m_2002) xis(`count') ci
}
praccum, using(m_2002) gen(p2002)

forvalues count = 0(.1)1 {
       quietly prvalue, x(a10=1 ideol0110=`count' ideol01=`count') rest(mean)
       praccum, using(m_2010) xis(`count')
}
praccum, using(m_2010) gen(p2010)


graph twoway connected p2002p0 p2010p0 p2002x, name(centralismo)


-- 
Robert Liñeira
Departament Ciència Política 
Universitat Autònoma de Barcelona
08193 Bellaterra - Barcelona
Tlf: +34 93 581 46 33
Despatx B1-185


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index