Stata scatterplots using the twoway command

Описание к видео Stata scatterplots using the twoway command

Coding a simple scatterplot in Stata using the twoway command. This brief video will demonstrate one way to code for scatterplots and provide a few general tips on making graphs in Stata. Stata tutorial for newcomers to the program.
Links:
https://www.stata.com/manuals13/g-2gr...

Downloads: Free stata cheat sheets
https://www.stata.com/bookstore/stata...

Code:
*Opening data
*use "$dd/auto"
sysuse auto

*Scatterplot
graph twoway ///
(lfitci price mpg) ///
(scatter price mpg, msize(xsmall) mcolor(green)), ///
legend(off) ///
title("Relationship between Car Price and mpg", size(Large)) ///
ytitle("Price ($)") ///
graphregion(color(white))

#stata #coding #datavisualization #econometrics

Комментарии

Информация по комментариям в разработке