Hi All,
I am new in Stata and I am using Stata 13. Using system installed dataset auto.dta, I want to draw a diagonal line from an intercept of 4000 and a slope of -45 degrees. How do I do this?
I have researched several sites and the closest code that I got is this:
sysuse auto, clear
set obs 75
replace price = 0 in 75
tw scatter weight price || line price price, sort
This solution however does not solve my problem.
I am new in Stata and I am using Stata 13. Using system installed dataset auto.dta, I want to draw a diagonal line from an intercept of 4000 and a slope of -45 degrees. How do I do this?
I have researched several sites and the closest code that I got is this:
sysuse auto, clear
set obs 75
replace price = 0 in 75
tw scatter weight price || line price price, sort
This solution however does not solve my problem.
Comment