 
 
 
 
 
 
How to assign the result from NonlinearFit to a function
- To: mathgroup at smc.vnet.net
- Subject: [mg70220] How to assign the result from NonlinearFit to a function
- From: "PengYu.UT at gmail.com" <PengYu.UT at gmail.com>
- Date: Sat, 7 Oct 2006 07:09:12 -0400 (EDT)
I have the following code. I want to assign the resulting function of
NonlinearFit to function f. But it seems that it doesn't work. Would
you please help me?
Thanks,
Peng
<< Statistics`NonlinearFit`
data = {{1.0, 1.0, .126}, {2.0, 1.0, .219}, {1.0, 2.0, .076}, {2.0,
2.0, .126}, {.1, .0, .186}};
f[theta1_, theta2_,  theta3_] := NonlinearFit[data, theta1 theta3 x1/(1
+ theta1 x1 + theta2 \
x2), {x1, x2}, {theta1, theta2, theta3}]

