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
 Customize Regression Output
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

VolkerPresser

Germany
Posts

Posted - 04/13/2006 :  12:32:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5714(B714)
Operating System: WinXP

Hi there,

I try to customize the output of a self-defined function:

y=P1*(1-erf((x/10000)/(4*P2*P3)^0.5))

but I cannot figure out how to do two things...

1. How can I expand the regression curve to a certain area? As default origin only fits within the margins of the data present but does not expand e.g. until x = 0. Is there a possibility to alter the fdf-file in order to do so?

2. How can I customize the "parameter output window"? Currently it says the following:


--------------------------------
Data: Data1_B
Model: ErrorFunction
Weighting:
y No weighting

Chi^2/DoF = 30227.43416
R^2 = 0.40544

P1 = 856.067 +- 768.70181
P2 = 3.5957E-11 +- 1.223E-11
P2 = s 2592000 +- 51560
--------------------------------


and I want the output to look like:

--------------------------------
Data: Data1_B
Model: ErrorFunction
Based on NAR97

R^2 = 0.40544

C0 [ppm] = 856.067 +- 768.70181
D [cm^2/s]= 3.5957E-11 +- 1.223E-11
t [s] = 2592000 +- 51560
--------------------------------


Thank you for your help in advance :)

Mike Buess

USA
3037 Posts

Posted - 04/13/2006 :  4:59:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think what you want can be done on the After Fit scripts window. If you can't find that window click the More button and select Scripts > After Fit.

1. In the Fit Curve section at the top select Uniform X and enter the limits over which you want the curve to stretch.

2. Uncheck the Write Parameters to Results Log option and check Enabled. Then enter the following script in the box below. Perform your fit as usual and when you click Done the results log should be filled as you like.

savered=type.redirection;
type.redirection=16;
type.beginresults();
%A=nlsf.fitdata$;
ty "Data: %A";
%A=nlsf.func$;
ty "Model: %A";
ty "Based on NAR97";
ty; ty "R^2 = $(nlsf.cor^2)";
ty; ty "CO [ppm] = $(nlsf.p1)\t+/- $(nlsf.e1)";
ty "D [cm^2/s] = $(nlsf.p2)\t+/- $(nlsf.e2)";
ty "t [s] = $(nlsf.p3)\t+/- $(nlsf.e3)";
separator 3;
type.endresults();
type.redirection=savered;

Mike Buess
Origin WebRing Member
Go to Top of Page

VolkerPresser

Germany
Posts

Posted - 04/14/2006 :  02:56:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
that did it thx a lot

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