









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
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
1 / 15
This page cannot be seen from the preview
Don't miss anything!
1
First Stage of becoming a Programmer
2
4
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
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
8
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
We provide the labels with the help of following codes:
11
13
Now
copy
all
the
commands
in
Do
File Editor. Save it.
14
Now run this ‘do file’.Type ‘describe to see
its impact.
Congratulations!
You have created your first do file.