Fitting problem: Linear vs Nonlinear
- To: mathgroup at smc.vnet.net
- Subject: [mg38466] Fitting problem: Linear vs Nonlinear
- From: guillerm at usal.es
- Date: Wed, 18 Dec 2002 01:53:56 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
(*I have the function that follow that is known*)
f[t_]= 0.3 Exp[-0.13 t]- 0.2 Exp[-0.5 t];
(*I have the model*)
y[a_,t_]:= a f[t]+ Random[Real, {-0.01, 0.01}]
(*With this model are simultated a few experimental data*)
sample=Table[{t, y[5,t]}, {t, 0,10}];
(* I wish estimated "a" ,that I suposse that is unknown, fitting "sample"
If I apply the package NonlinearFit it works but I receive the message:
try using Regress from the "Statistics`LinearRegression`" package*)
Needs["Statistics`NonlinearFit`"];
NonlinearRegress[sample,a f[t],{t},{a,5}]
(*How can I fit this data using :*)
Needs["Statistics`LinearRegression`"]
Thanks
Guillermo
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/