</h1><!--introduction--><!--/introduction--><pre class="codeinput"><span class="comment">% This file is from pmtk3.googlecode.com</span>

loadData(<span class="string">'prostate'</span>);
[n, d] = size(X);
X = standardizeCols(X);
y = centerCols(y);
mse = zeros(2^8-1, 1);
ss = powerset(1:d);
ss(1) = [];
<span class="keyword">for</span> i=1:numel(ss);
    ndx = ss{i};
    model = linregFit(X(:, ndx), y, <span class="string">'preproc'</span>, struct(<span class="string">'addOnes'</span>, false));
    model.w =