Unformatted text preview: “tab var1” or “tab var1 var2” For a single categorical variable, it presents the frequency distribution; for two categorical variables, it gives the joint frequency distribution. correlate “corr var1 var2” Displays the coefficient of correlation between two variables. graph pie “graph pie cat1 cat2 cat3 cat4” Creates a pie graph with the shares of people belonging to each category. The list of categories must be mutually exclusive, and contain the entire set of possibilities. graph hbox “graph hbox var1” or “graph hbox var1, over(var2)” Creates a box-and-whiskers graph of the variable. With the “ over ” option, it does a graph for each category within the second variable. scatter “scatter yvar xvar” Creates a scatterplot, with the first variable on the y axis and the second on the x axis. ....
View Full Document
- Spring '08
- Standard Deviation, Correlation and dependence, Pearson product-moment correlation coefficient, Spearman's rank correlation coefficient, Categorical distribution