te.</span>
0022 <span class="comment">%</span>
0023 <span class="comment">% To add confidence bands, use the lfband() function.</span>
0024 <span class="comment">%</span>
0025 <span class="comment">% Author: Catherine Loader.</span>
0026 
0027 fit = varargin{1};
0028 data = fit.data;
0029 xdata = data.x;
0030 n = size(xdata,1);
0031 d = size(xdata,2);
0032 fali = fit.fit_points.family_link;
0033 ydata = data.y;
0034 wdata = data.weights;
0035 cdata = data.censor;
0036 <span class="keyword">if