ts: 'name', initial_value, min_value, max_value, prior_mu, prior_sigma, and targetflag</p><p>The <tt>model</tt> structure holds information about the model. Minimally we need to set <tt>ssfun</tt> for the sum of squares function and the initial estimate of the error variance <tt>sigma2</tt>.</p><pre class="codeinput">model.ssfun  = ssfun;
model.sigma2 = mse; <span class="comment">% (initial) error variance from residuals of the lsq fit</span>
</pre><p>If we want to sample the error variance sigma2 as an ext