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
How to bound x-axis on histogramI'm using the command histogram [cat var] to output a histogram in stata. I only care about the va…
Bar graph with confidence intervals and character group labelsSo this bothers me for a while. I want to have a bar graph for group means with confidence intervals…
Separating string variable with parenthesis and commasHello, I have variable that looks like Experience ('Santo Engineering', '2017-04-30', '2017-05-30'…
Using suest across different data framesIs it possible in Stata 16 to compare model estimates (using 'suest') across different data frames? …
Why the logical in Stata of calculating missing observation is quite strangeToday I calculate Code: gen year1a=1 if yr <=ei +1 While ei=. and yr=1990, I saw the result of …
Subscribe to:
Post Comments (Atom)
0 Response to Creating graphs with scalars
Post a Comment