Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Working with Do Files - Econometrics - Lecture Slides, Slides of Econometrics and Mathematical Economics

Working with do files, First stage of programmer, Introduction to do files, Making first do file, Importance of do files, Commands, Labeling of variables, Codes are key and learning points in this lecture of Econometric.

Typology: Slides

2011/2012

Uploaded on 11/10/2012

uzman
uzman 🇮🇳

4.8

(12)

148 documents

1 / 15

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
WORKING WITH DO FILES
First Stage of becoming a Programmer
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Working with Do Files - Econometrics - Lecture Slides and more Slides Econometrics and Mathematical Economics in PDF only on Docsity!

1

WORKING WITH DO FILES

First Stage of becoming a Programmer

2

Objectives

The Objectives of this lecture are:Introduction to do files & their ImportanceMaking our first do fileWorking as a Professional

4

Working with do files

Open the stata data file ‘roster without labels.dta’.Type describe to describe the variables. Note

that

no

labels

are

attached withdata,variables andvalues labels.

5

Working with do files

We want to create a do file which attaches labels to data as well

as its variables and values of the variables. First we label the Data. Stata command is:Label data “Pakistan Integrated Household Survey”

7

Working with do files

8

Working with do files

To label the values of the variables, one must know the codes

(value label codes) which is given with the household data(questionnaire). Here is a brief code provided to explain the labels to be attached

with the values.

10

Working with do files

We provide the labels with the help of following codes:

11

Working with do files

13

Working with do files

Now

copy

all

the

commands

in

Do

File Editor. Save it.

14

Working with do files

Now run this ‘do file’.Type ‘describe to see

its impact.

Congratulations!

You have created your first do file.