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 for Programming
 LabTalk Forum
 multiple linear regression
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

joonhee93

3 Posts

Posted - 12/16/2010 :  06:44:55 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8 and Service Release 6(Select Help-->About Origin):
Operating System: Windows Vista

Hello,

I am using WKSSTAT.ogs script for the multiple regression. I am wondering if there is a way to set a range for the stat.mr.bi (ith fitting parameter). I could not find any method for it. I want to confine the b parameter to be positive, but sometimes the regression gives me negative values.

Thanks!

larry_lan

China
Posts

Posted - 12/17/2010 :  09:56:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi:

Linear models like Simple Linear Fitting, Polynomial Fitting and Multiple Linear Regression have analytical solutions, so we don't have bounds control in these functions.

If you want to control these fitting parameters, you can define a multiple independent variable fitting function and do that in NLFit dialog (Nonlinear Curve Fitting).

However, since you are writing scripts, the nlbegin X-Function doesn't work for multiple independent variable functions. In Origin 8.5, we introduced a new X-Function, nlbeginr, to handle this case.

I suggest you upgrade your Origin to 8.5, and try the example in the nlbeginr X-Function.

Thanks
Larry
OriginLab
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