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
marginsplot with custom labelsHi, I saw a discussion about this topic here: https://www.statalist.org/forums/for...-custom-labels…
Download collin command for stata and suitable value for vif ?I use command findit collin, and scroll to the last, then click collin from https://stats.idre.ucl…
Identify if single cell contains multiple substringsHi, I'd like to identify observations when a string variable contains multiple substrings. In my d…
mlogit + margins + testUsing Stata 15.1, I was wondering how I test for equality of the coefficients for the marginal effec…
Time series ARIMA, how to forecast future?Hi everyone, I am new to STATA time series, and here is a question I have on how to perform forecas…
Subscribe to:
Post Comments (Atom)
0 Response to Creating graphs with scalars
Post a Comment