Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Quandl Package – 5,000,000 free datasets at the tip of your fingers!

# Yes, you read that correctly and no Quandl (http://www.quandl.com/) did not pay me anything.# Quandl is a new database management tool which seeks to become the place to find datasets.  They boast of having over 5×10^6 data sets available t…

Continue reading Quandl Package – 5,000,000 free datasets at the tip of your fingers!

Use Expand to Manually Reshape Data

do file* Imagine that you have a wide data set that you would like to convert to a long data set.* Your data set is structured in the following manner.clearset obs 1000gen id = _nforv i=1/4 {  gen var1_`i’ = rnormal()  gen var2_`i’ = rnormal(…

Continue reading Use Expand to Manually Reshape Data

Data transfer from Matlab to Stata and reverse

Zip file with Matlab code to export or import datasets to Stata. For use in conjunction with “insheet/outsheet”. Importing data from Stata is restricted to numeric variables (but not the reverse).(also includes scripts for dropping missing obs in matla…

Continue reading Data transfer from Matlab to Stata and reverse