### Stata FAQ How can I do a profile plot in Stata?

A profileplot graphs the levels of several variables for two or more groups. One can then compare the profiles of the groups to oneanother. UCLA ATS has written a command called profileplot that will produce this type of graph. To get this program just type the following into the Stata command box and follow the instructions: findit profileplot
use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear

profileplot read write math science socst, by(prog)


The profileplot command also has an option to display the profile using medians instead of means.
profileplot read write math science socst, by(prog) median



The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.