Oh mission

Observations on economic development and other random stuff.

Sunday, January 26, 2014

My ado files are all available on GitHub. The link is here: https://github.com/shafiquejamal/stata_ado_files

›
My ado files are all available on GitHub. The link is here: https://github.com/shafiquejamal/stata_ado_files To get these files, visit ...
2 comments:
Saturday, December 8, 2012

Stata tip: "Mega If" : a simple command to generate long if conditions

›
Suppose you need to type the following command that has many conditions in the if condition: replace group = 1 if (benefitNumber == 1 | ...
2 comments:
Thursday, December 6, 2012

Stata tip: Quickly, and in one command, rename all variable labels of variables generated with the 'xi' command to reflect the value labels of the xi'd variable

›
When you use the xi command on categorical variables, even on those that have a value label associated with them, you get this: . xi: svy...
1 comment:
Monday, December 3, 2012

Stata tip: Using perl compatible regular expressions (PCRE) in Stata

›
UPDATE 12-07-2012: Thanks to Nicholas J Cox who the problem I was having with the -marksample- command. I replaced the code below with the...
Wednesday, November 28, 2012

Stata tip: collapse dataset while preserving variable and value labels

›
When I use the collapse command, I loose the variable and value labels associated with my variables. The following program does everything...
2 comments:
Tuesday, November 27, 2012

Stata tip: Plotting simillar graphs on the same graph

›
Suppose you want to make a bar graph of a variable, such as consumption, for two mutually exclusive groups such as males and females, repre...
1 comment:

Stata tip: fixing the legend on bar graphs to display variable labels instead of variable names

›
Check out the legends on these two graphs (the first one is the problem legend, the second one is the better legend): For the first...
4 comments:
›
Home
View web version

About Me

Shafique Jamal
I graduated from the MPA/ID program at Harvard Kennedy School in 2008. I currently work for a multilateral economic development institution based in Washington, DC.
View my complete profile
Powered by Blogger.