function summary = summarize(y,x);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%function summary = summarize(y,x);
%Purpose: Creates a matrix of descriptive statistics from your regression
%varialbes.
%Returns: summary = [mean std min max]
%Written by:
%Justin M. Ross
%School of Public and Environmental Affiars
%Indiana University - Bloomington
%March 2008
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
means = [mean(y) mean(x)];
stdev = [std(y) std(x)];
mins = [min(y) min(x)];
maxs = [max(y) max(x)];
summary = [means' stdev' mins' maxs'];