Cumulative Distribution Plot

You can plot the cumulative distribution function in Stata using the cdfplot command.

To create this plot in Stata you first need to download the command cdfplot from the SSC, which you can do in Stata using the following command:

ssc install cdfplot

To generate this graph in Stata use the following commands:

sysuse auto, clear
cdfplot length [fw=rep78], by(foreign) norm legend(position(6) col(2))