The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 multiple linear regression what is the max
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

antonio2

Brazil
Posts

Posted - 01/13/2006 :  2:53:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System:win xp

What is the maximum degree of freedom on Multiple linear regression. The sample shows 3, but I need more than ten, which way can we extend it. ?


easwar

USA
1964 Posts

Posted - 01/13/2006 :  3:09:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The current limit is 9 independent variables. We will address this limitation in the next version.

For now you have two options. One is to see if the NAG library has suitable functions and write custom Origin C code to access those functions to perform the regression.

The second option is to use the NLSF tool and do minimization of a user-defined function. This may be easier in that it is accessible from GUI, but perhaps a bit quirky because you have to edit your function to add another term etc.

Say you want 10 indep vars. With NLSF what you can do is:
1> define a new function

2> set indep var names as
xx1,xx2,xx3,xx4,xx5,xx6,xx7,xx8,xx9,xx10

3> set dep var name as
y

4> Set user defined parameter names as:
a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10

5> Define the function as:
y=a0+a1*xx1+a2*xx2+a3*xx3+a4*xx4+a5*xx5+a6*xx6+a7*xx7+a8*xx8+a9*xx9+a10*xx10

6> Assign all indep columns (typically cols 2 thru 11 for the 10-indep var case) to the xx vars. Assign dep col (typically 1st col) for the y var

7> Simply assign value = 1 for all parameters and do the iteration and let the fitter find the optimal parameter values and their associated errors.

Easwar
OriginLab


Edited by - easwar on 01/13/2006 3:29:56 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000