[proFit-list] n00b question on multiple regression setup

Dave glasspusher at outofoptions.net
Fri Dec 10 09:43:07 CST 2010


Hi all,
	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:

gal = a0 + a1*spl + a2*spl2 + a3*spl3

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.

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.

Thanks for any help.

Dave


function Get(spm,spm2,spm3,gal);
	inputs
spm := 0 , inactive, 'spl';
spm2:= 0 , inactive, 'spl2';
spm3:= 0 , inactive, 'spl3';
gal := 0, active,'gal';
begin
gal := (spm + spm2 + spm3);
end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20101210/f80e5f82/attachment.html>


More information about the proFit-list mailing list