Computing‎ > ‎

Data visualization

Watercolor Regression (MATLAB)

Display a smooth nonparametric distribution of the probability density for a nonparametric regression estimate.

Code is here.

Watercolor regression (described here) is a type of visually-weighted regression (described here). 

Citation: Hsiang (2012) "Visually-Weighted Regression" (here).

Visually-Weighted Regression (STATA & MATLAB)

Use the color-saturation of a regression line to denote the statistical confidence in the regression line at each point. 

Code is here under Hsiang (2012) "Visually-Weighted Regression."

Described here with several options demonstrated here and the "watercolor regression" option described here.

Citation: Hsiang (2012) "Visually-Weighted Regression" (here).

Boxplot Regression (MATLAB)

Discretize an independent variable and use boxplots as a nonparametric regression.  

Code is here.

[Stata version coming soon]

Displaying field data in Google Earth (MATLAB)

Export time-varying field data to Google Earth. 

Code is described and posted here.

Three-Dimensional Nonparametric Regression (MATLAB)

Flexibly estimate means conditional on two variables with bootstrapped confidence intervals.

Code is here.

Regression coefficient stability over time (STATA)

Flexibly test whether parameter estimates change across subsamples in a moving window.

Code is here

My Google Earth Library (Google Earth Files)

Explore dynamic global data sets on hurricanes, ENSO, economic activity and agriculture.

Data posted here.

Visualizing ENSO (VIDEO)

Watch the characteristic surface temperature response to the El Niño-Southern Oscillation. 

For more information, see Hsiang, Meng & Cane (2011) here.