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-
Problems with panel dataI am new to stata and I trying to run a regression to understand demographic roles in unemployment, …
merging two panel data sets - 1:m mergingHello, I need help with two merging panel data sets according to the following variables: h_id, year…
Compute Female proportion in each district in long format data in Stata. I have a long format dataset where it has 5 variables: did---district id sid---school id id--studen…
Measuring duration between age 13 and 19Hi people, Supposed i want to measure marriage timing among pregnant and non pregnant adolescents (a…
Help with StrposHi there, In the code below my goal is to convert the local below into a neat list by converting "R…
Subscribe to:
Post Comments (Atom)
0 Response to Markers from -scatter- not aligned with spikes from -rcap-
Post a Comment