Dear All
I am using twoway scatter lfit to visualize the association between two measures, as in the example below.
I would like to add a box within the figure, e.g. in the example below at position 1, which contains the correlation (or standardized beta coefficient) and the R2 of the unconditional association.
Any pointers on how to accomplish this would be greatly appreciated!
I am using twoway scatter lfit to visualize the association between two measures, as in the example below.
Code:
clear all
sysuse auto.dta
global v price mpg
twoway (scatter $v) (lfit $v) , legend(off) aspectratio(1)
Any pointers on how to accomplish this would be greatly appreciated!

Comment