I am trying to use raw data to make a graph plotting point estimates and confidence intervals. I am importing the data from Excel, not using margins to create it. So I am using -twoway- with both -scatter- and -rcap- in the same command. But when I do so, the markers from -scatter- appear to be not quite lined up perfectly with the lines from -rcap-. In other words, the spikes do not go through the center of the markers, but are slightly off. Here is some example code that does the equivalent of what I am trying to do. Does anyone know why this is happening or how I can fix it? Thank you.
sysuse auto, clear
keep in 1/4
gen high = price + 1000
gen low = price - 1000
twoway (scatter price gear_ratio, mcolor(gs6) msize(medlarge) msymbol(D) mfcolor(white)) ///
(rcap low high gear_ratio, lwidth(medthick) lpattern(shortdash) lcolor(gs6) msize(large))
Related Posts with Markers from -scatter- not aligned with spikes from -rcap-
multilevel logistic regression: question about random slopeHello, I have models of multilevel logistic regression with random intercept and random slope. In th…
how to display frequencies and percentages to whole numbers only in STATA SE/15.1Hi, 'm working with a data set of 58 variables and 795 observations. Most of the variables are categ…
mixed effect modelsHi, I'm trying to fit data from 10 different subjects to a nonlinear mixed effect model. The model …
Panel spatialHello I'm interesting to road a panel spatial with n=399 and t=12. In the stata 15 I use to do that…
Altonji RatioDear Stalisters, I would be grateful if sombody could advice me on how to implement altonji ratio f…
Subscribe to:
Post Comments (Atom)
0 Response to Markers from -scatter- not aligned with spikes from -rcap-
Post a Comment