Skip to content

Instantly share code, notes, and snippets.

@isaacgeng
Last active March 30, 2022 04:00
Show Gist options
  • Save isaacgeng/f33be9928a8a34a0d02cc70fb4be1895 to your computer and use it in GitHub Desktop.
Save isaacgeng/f33be9928a8a34a0d02cc70fb4be1895 to your computer and use it in GitHub Desktop.
sysuse bpwide, clear
bys agegrp : egen bldps_m = mean(bp_after)
keep agegrp bldps_m
duplicates drop
rename (bldps_m agegrp) (y x)
sum y
local plot_min = r(min)*0.97
tw (sc y x) ///
, ///
yscale(range(`rmin')) ///
ylabel(#8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment