• Laura Whiting

Variable Cross Plot in Stata

A Cross Plot will generate a series of plots of one or more x-axis variables against one or more y-axis variables. For example, a cross plot of y1 y2 y3 with x1 x2 x3 would result in nine plots, with each y-variable being plotted against each x-variable.

To create a cross plot in Stata you will first need to download the cpyxplot command from the SSC, which you do using the following command in Stata:

To generate this graph in Stata use the following commands:

The y-variables are all given before the backslash, and the x-variables are all given after the backslash.

5 views0 comments

© 2020 by Survey Design and Analysis Services. 

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube