Skip to content

Instantly share code, notes, and snippets.

@bbdaniels
Created January 23, 2020 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbdaniels/da6f8a30a0e61924e76990639a23dc70 to your computer and use it in GitHub Desktop.
Save bbdaniels/da6f8a30a0e61924e76990639a23dc70 to your computer and use it in GitHub Desktop.
Edgeworth box in Stata
clear
set obs 100
gen y = runiform() * 3
gen x = runiform() * 3
tw ///
(scatter x y) ///
(scatter x y , m(none) yaxis(2) xaxis(2)) ///
, yscale(reverse axis(2)) xscale(reverse axis(2))
// end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment