Tell me, where did I go wrong
If you are Filipino, you are most likely singing the title by now Looking for a missing bracket, a misplaced comma, or a space that shouldn’t be there—or debugging in general—can be a pain sometimes....
View ArticleNo -usespss- for Mac
In Reading SPSS data file into Stata, I describe Sergiy Radyakin’s -usespss- that loads SPSS data (.sav) into Stata. I was on Windows then. -usespss- is unfortunately not available for Mac OS....
View ArticlePut anything anywhere in Excel without sweat
putexcel has recently become a very good friend. For those who (or working with people who) find comfort in working with tables in Excel after data processing or estimation in Stata (yes, there are...
View Articlebreak me
Sometimes we want to break a continuous variable into a smaller set of categories—into evenly spaced or equally sized groups, or groups based on limits we specify, or groups based on another variable...
View ArticleWhere to buy Stata in the Philippines
In the Philippines, there has been an emerging demand in the public sector for data-driven analysis of various govenrment programs (yes, emerging.. don’t ask why.. but the leadership has a lot to do...
View ArticleImport data from Excel sheets
How do we import data from all sheets in a number of Excel files? Each Excel file has a different number of sheets with names of no discernible pattern, but (thankfully) each sheet has the same...
View Article-destring- complication: negative numbers
Less than 2 hours flight… In a Stata training, one of the students wondered why after importing an Excel file of financial indicators into Stata some were read as strings. A quick browse at the data...
View Article-destring- uncomplicated
In a comment to the previous post destring complication: negative numbers, Nick Cox pointed out “the most important advise” in using destring: “never destring, replace unless you are absolutely sure...
View ArticleThe adventures of tin()
Using the if qualifer with time-series data is tricky. Until you meet tin(). Let us use quarterly German macro data, lutkepohl2, from Stata website to illustrate. . webuse lutkepohl2 (Quarterly SA West...
View Articledates in Starbucks
In yesterday’s post, one of the needed cleaning is to extract date and day of week from the string: . list date in 1/5 +--------------------------------------------+ | date |...
View ArticleUN Comtrade API in Stata
The UN Comtrade is the largest repository of disaggregated trade statistics. It offers free access to detailed annual trade data starting from 1962 and monthly trade data from 2010. Free access is...
View Articlecreative destruction: collapse and contract
Creative destruction, coined by Joseph Schumpeter in Capitalism, Socialism, and Democracy, refers to the process by which new innovations kill old inefficient products. But we are not talking about...
View Article#HowDoYouStata
This is a shameless plug. By now you may already know that StataCorp initiated a contest in Facebook that started a week ago and will end tomorrow, Dec 2 at 930am CST. I submitted an earlier blog post...
View ArticleRegression discontinuity design in Stata (Part 1)
There has been a growing use of regression discontinuity design (RDD), introduced by Thistlewaite and Campbell (1960), in evaluatin impacts of development programs. Lee and Lemieux (2010), Imbens and...
View Article
More Pages to Explore .....