You are on page 1of 2

*this is our m.

phil class

sysuse dir

*.dta is a extention to stata data files

aysuse auto

*sysuse auto

* sysuse auto

help describe

hd

sysuse auto

describe

d make mpg trunk

des price- turn

* describe provides description of the variables

summarise

summarizel

sum price rep78 trunk

sum price- foreign

list

list

list mpg weight turn

list price- turn

* one way table and 2 way table tabulate

tab rep78

tab for

* tab should be used for variables with repeated observations

tab rep78 for

tab for rep78

for tab

for tab
tabstat price mpg

tabstat price mpg, stats(n, mean, sd, cv, p50)

summarise help

reg price mpg length for

reg pricte mpg length weight for

vif

reg price mpg length for

vif

hettest

reg price mpg length for

reg price mpg length for, robust

hettes

histogram price

graph export "C:\Users\abc\Desktop\Graph.pdf", as(pdf) replace

reg price mpg length for, robust

hettest

scatter length weight

You might also like