I am trying to draw a density probability plots.
I am using dpplot in Stata 17 MP.
Here is my code :
Code:
dpplot estimate,xline(-0.04)
parm estimate stderr dof t p min95 max95
false_pmc 0.01 .01005141 1808 1.305904 0.192 -0.01 0.03
false_pmc 0.01 .01035384 1808 .79613713 0.426 -0.01 0.03
false_pmc -0.00 .00917938 1808 -.33531606 0.737 -0.02 0.01
false_pmc 0.01 .01202647 1808 .52719886 0.598 -0.02 0.03
false_pmc 0.00 .01322949 1808 .12790956 0.898 -0.02 0.03
false_pmc -0.02 .01372262 1808 -1.1118329 0.266 -0.04 0.01
false_pmc 0.01 .01133641 1808 1.07723 0.282 -0.01 0.03
false_pmc -0.00 .01087316 1808 -.0741116 0.941 -0.02 0.02
false_pmc -0.01 .01138588 1808 -.93977424 0.347 -0.03 0.01
false_pmc 0.01 .0109994 1808 .5809995 0.561 -0.02 0.03
false_pmc -0.00 .01148881 1808 -.37364806 0.709 -0.03 0.02
false_pmc -0.02 .01118179 1808 -1.5270723 0.127 -0.04 0.00
false_pmc -0.01 .01011897 1808 -1.1798214 0.238 -0.03 0.01
false_pmc 0.01 .0103934 1808 .74054376 0.459 -0.01 0.03
false_pmc -0.01 .01117908 1808 -.45962602 0.646 -0.03 0.02
false_pmc 0.00 .0114511 1808 .14061406 0.888 -0.02 0.02
false_pmc 0.01 .01005423 1808 .66351958 0.507 -0.01 0.03
false_pmc 0.02 .01040792 1808 1.6386426 0.101 -0.00 0.04
false_pmc 0.00 .01256759 1808 .15387596 0.878 -0.02 0.03
false_pmc -0.03 .01211202 1808 -2.15266 0.031 -0.05 -0.00
false_pmc -0.01 .01007918 1808 -1.2526117 0.211 -0.03 0.01
false_pmc 0.00 .01059664 1808 .37192722 0.710 -0.02 0.02
false_pmc 0.01 .01062697 1808 1.2042643 0.229 -0.01 0.03
false_pmc -0.01 .00938019 1808 -.89738079 0.370 -0.03 0.01
false_pmc -0.01 .01075234 1808 -.77931716 0.436 -0.03 0.01
false_pmc -0.02 .01154672 1808 -1.5516177 0.121 -0.04 0.00
false_pmc -0.01 .01108426 1808 -1.0489742 0.294 -0.03 0.01
false_pmc -0.00 .00989764 1808 -.33650708 0.737 -0.02 0.02
false_pmc -0.01 .01163172 1808 -.47753426 0.633 -0.03 0.02
false_pmc 0.00 .00992296 1808 .02770149 0.978 -0.02 0.02
false_pmc -0.01 .00910507 1808 -.63965445 0.522 -0.02 0.01
false_pmc 0.00 .01133577 1808 .17950139 0.858 -0.02 0.02
false_pmc 0.01 .01000421 1808 1.342071 0.180 -0.01 0.03
false_pmc 0.02 .01078521 1808 1.7340913 0.083 -0.00 0.04
false_pmc 0.02 .01097819 1808 1.8111782 0.070 -0.00 0.04
false_pmc 0.01 .01077817 1808 .78302216 0.434 -0.01 0.03
false_pmc 0.00 .01051611 1808 .4437661 0.657 -0.02 0.03
false_pmc 0.00 .01151903 1808 .03358111 0.973 -0.02 0.02
false_pmc 0.01 .00912713 1808 .55238339 0.581 -0.01 0.02
false_pmc -0.00 .01012269 1808 -.24635954 0.805 -0.02 0.02
false_pmc 0.01 .01085409 1808 .5424046 0.588 -0.02 0.03
false_pmc 0.00 .00982581 1808 .48605508 0.627 -0.01 0.02
false_pmc 0.01 .01334496 1808 .65037588 0.516 -0.02 0.03
false_pmc 0.01 .01065703 1808 .52625237 0.599 -0.02 0.03
false_pmc 0.01 .01024709 1808 .64738311 0.517 -0.01 0.03
false_pmc 0.01 .01032779 1808 1.1457101 0.252 -0.01 0.03
false_pmc -0.00 .00875727 1808 -.27008245 0.787 -0.02 0.01
false_pmc -0.02 .01305181 1808 -1.4385294 0.150 -0.04 0.01
false_pmc 0.00 .01023954 1808 .33507566 0.738 -0.02 0.02
false_pmc -0.03 .01138844 1808 -2.7413395 0.006 -0.05 -0.01
And, I got this graph:
Array
The bound of x-axis is between -0.03 ~ 0.02. I found that if I write any number between [ -0.03, 0.02 ], it can show a vertical red line in the graph. But if I set xline( -0.04), the code will run fine without any error reporting, but the graph not showing the vertical line of x = -0.04. How can I add a vertical line for instance, x = 0.3 on this graph ?
Does anyone know how to fix this ? I will be very appreciated !!!
0 Response to dpplot command, use xline() option but not showing the vertical line in graph
Post a Comment