A scatter plot is a simple two-way plot that graphs the values of one variable against the values of another variable. Let's see a scatter plot in action, using the existing Stata sample dataset known as census13. Copy and paste the following code into your Stata command window:
webuse census13
scatter brate pop
Notice that the variable listed second in the scatter plot constitutes the x axis. You can switch it to the y axis by changing the scatter plot as follows:
scatter brate pop
In the scatter plot, we see that, as a state's population increases, its birth rate declines. In the different regression tutorials, you'll learn more about how we can plot the fit between two variables.
Convinced of our expertise? Let 272Analytics assist with data analysis and/or methodology for your quantitative thesis or dissertation.
No comments:
Post a Comment