You are on page 1of 1

sysuse auto.

dta

*save data file

*Representing the variables in tabular form

list ner cpi2010

list in 1/10

*the above syntax gives the first ten values only

*Opening the variables in an excel spreadsheet

edit ner cpi2010

/*Mean, Variance, Number of Non-missing Observations,

Minimum, Maximum, Etc. of the data sets*/

summarize ner cpi2010

*To see the mini-histogram of a data series

histogram ner

histogram cpi2010

*To see the scatter diagram of data series

scatter ner cpi2010

*To see the line graph of data series

line ner cpi2010

/*To compute the correlations and covariances between a

list of variables*/

correlate ner cpi2010

*For dropping a variable, i.e., ner from your data file

drop ner

/*For keeping one variable only, i.e., ner

(this will remove all other variables in the data file)*/

keep cpi2010

You might also like