<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The old way of doing this in pro Fit was to put your values for gal, spl, spl2 and spl3 in separate columns, e.g., 1,2,3,4. Define the index column as the x-variable and gal column as y-variable.  Then program your function as follows:<div><br></div><div>begin</div><div> y :=  a[1] + a[2]*data[x,2] + a[3]*data[x,3]+a[4]*data[x,4]</div><div>end</div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="font-size: 12px; "><font class="Apple-style-span" color="#D4754F">末末末末末末末末末末末末末末末末</font></div><div style="font-size: 12px; "><b>Don Camaioni</b></div><div style="font-size: 12px; ">Pacific Northwest National Laboratory</div></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Dec 10, 2010, at 7:43 AM, Dave wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi all,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I have to do a multiple regression fit for an equation, and I think the way to do it is by using pro Fit's "Multiple Fit" functionality. I tried to set things up similar to the examples in the help, but I'm clearly missing something. The equation who's parameters I want to find is:</div><div><br></div><div>gal = a0 + a1*spl + a2*spl2 + a3*spl3</div><div><br></div><div>I have data columns for gal, spl, spl2 and spl3. I'm trying to find a0,a1,a2, and a3. I've been told that the spls are the independent variables in this case and the gal is the dependent variable, and I've tried to set up a function(see below) in this vein that describes this, but when I do it the "multidimensional fitting" dialog box and scheme shows y as the output, gal as fitted, and the spls as not fitted.</div><div><br></div><div>Am I barking up the wrong tree here, or what am I doing wrong? Something tells me I'm defining stuff incorrectly, but I can't glean from the examples how to do it right.</div><div><br></div><div>Thanks for any help.</div><div><br></div><div>Dave</div><div><br></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="color: #0232d3">function</span> Get(spm,spm2,spm3,gal);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(2, 50, 211); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">      </span></span>inputs</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; ">spm := 0 , <span style="color: #d57919">inactive</span>, <span style="color: #797979">'spl'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; ">spm2:= 0 , <span style="color: #d57919">inactive</span>, <span style="color: #797979">'spl2'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; ">spm3:= 0 , <span style="color: #d57919">inactive</span>, <span style="color: #797979">'spl3'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; ">gal := 0, <span style="color: #d57919">active</span>,<span style="color: #797979">'gal'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(2, 50, 211); ">begin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; ">gal := (spm + spm2 + spm3);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(2, 50, 211); ">end<span style="color: #000000">;</span></div></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>