I have some problems creatin a graph with scalar variables, here is my code:
set scheme cleanplots, perm
egen maxmonto=max(monto)
egen maxtea=max(tea)
su maxmonto
scalar maxmonto2=r(max)
disp maxmonto2
twoway (scatter tea monto, mlcolor(blue) mlwidth(medthick) yscale(r(0 20 50 83.4)) ylabel(0 20 50 83.4) xscale(r(0 1000 2000 maxmonto2)) xlabel(0 1000 2000 maxmonto2) title("Pequeñas empresas MN") ytitle("TEA-%") xtitle("Monto del crédito-S/ Miles"))
Thanks in advance
Related Posts with Creating graphs with scalars
merge problem: observations are matched but I get 'no observations' for variables of interestGreetings, I'm running Stata 15.1 on OSX. I'm working with a cumulative longitudinal dataset (the A…
Heckman modelHello every one first: i know two ways to use Heckman test, (1) by generate dummy variable as follow…
🐛 Stata crashes on command executionThe following example demonstrates a sequence of commands that when executed crash Stata without pos…
mi impute chained error msg: right-hand variables or weights missing values--but they are notHello, I'm using the mi impute chained command on Stata SE 15.1. After encountering the perfect pre…
Average over a period of timeHi All, I have been using multiple real-time devices to collect air measurements., Now that I have …
Subscribe to:
Post Comments (Atom)
0 Response to Creating graphs with scalars
Post a Comment