Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Visually-Weighted Regression

[This is the overdue earth-shattering sequel to this earlier post.]I recently posted this working paper online. It’s very short, so you should probably just read it (I was actually originally going to write it as a blog post), but I’ll run through…

Continue reading Visually-Weighted Regression

Some shapefile utilities for Matlab (and data transfer to Stata)

Here are some extremely simple but extremely useful functions when working with shapefiles in Matlab.Functions to drop or keep polygons in your workspace based on their attributes (drop_by_attribute.m, keep_by_attribute.m).A simple command to plot all …

Continue reading Some shapefile utilities for Matlab (and data transfer to Stata)

Standard error adjustment (OLS) for spatial correlation and serial correlation in panel data in (Stata and Matlab)

I’ve been doing statistical work on climate impacts (see a typhoon climatology of the Philippines to the right) and have been having trouble finding code that will properly account for spatial correlation and serial correlation when estimatin…

Continue reading Standard error adjustment (OLS) for spatial correlation and serial correlation in panel data in (Stata and Matlab)

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