Stata Commands

Describe

produces a summary of the dataset in memory or of the data stored in a stata-format dataset

Summarize

gives summary statistics

Tabulate

creates a table listing the number of observation having each different value of the variable

Sort

arranges the observations of the current data into ascending order based on the values of the variables in the variable list.

Rename

it renames the variable

Label

creates a label for the variable to describe what it is

Label define

...

Label values

...

Order

Reorder variables in the dataset

Generate

Creates or changes the content of a variable

Replace

for replacing the values of an existing variable

List

lists values of a variable

Keep

...

Drop

eliminates variables or observation from the data in memory

Duplicates

reports, displays, lists, tags or drops duplicate observations, depending on the subcommand specified

Correlate

displays the correlation matrix or covariance matrix for a group of variables

Regress

...

Probit

fits a maximum likelihood probit model

If

If the result is true, the commands inside the braces are executed. If the result is false, those statements are ignored, and the statement following the else is executed.

By

repeats the command for each group of observations for which the values of the variables in varlist are the same.

Clear

removes data and value labels from memory.

Recode

changes the values of numeric variables according to the rules specified.

Merge

used to combine multiple data sets

Append

adds additional data sets

Scatter

creates a scatterplot of the data

CI

creates a confidence interval for the mean of the variable

ttest

test the hypothesis that the mean of a variable is equal to some number

Gsort

arranges observations to be in ascending or descending order of the specified variables and so differs from sort in that sort produces ascending-order arrangements only

Egen

generates a variable but works across all observations