Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NonlinearModelFit and ParameterTable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106384] Re: NonlinearModelFit and ParameterTable
  • From: dh <dh at metrohm.com>
  • Date: Mon, 11 Jan 2010 05:30:11 -0500 (EST)
  • References: <hic36r$5cg$1@smc.vnet.net>


Hi,

it looks like ltime already has a value. Try clearing ltime. Anyway, you 

should give a simple working example.

Daniel



Ktota wrote:

> mtest1[t_,ltime_]:=If [var1*(t+var2-qtime)>8000,Sum[If [var1*(tsum

> +var2-qtime)>8000,8000*(1-P),var1*(tsum+var2- qtime)*(1-P)],{tsum,t-

> ltime+1, t,1}],Max[{Sum[{var1*(tsum+var2- qtime)*(1-P)},{tsum,t-ltime

> +1, t,1}]},0]]/156000

> 

> 

> i optimize the model above with:

> 

> parameter2=

>  NonlinearModelFit[ExpData, mtest1[t, ltime], {ltime},

>    t]

> 

> 

> which is perfectly fine...

> 

> but as soon i want to see the ParameterTable or the

> ConfidenceIntervals by doing this:

> 

> parameter2["ParameterTable"]

> 

> I get the following error message:

> 

> and this only happens if i want to fit for ltime.. parameters P and

> var1 are perfectly fine....

> 

> In[374]:= parameter2["ParameterTable"]

> During evaluation of In[374]:= General::ivar: 9.125191604503259` is

> not a valid variable. >>

> During evaluation of In[374]:= General::ivar: 9.125191604503259` is

> not a valid variable. >>

> During evaluation of In[374]:= General::ivar: 9.125191604503259` is

> not a valid variable. >>

> During evaluation of In[374]:= General::stop: Further output of

> General::ivar will be suppressed during this calculation. >>

> Out[374]= $Aborted

> 

> if i only want to see the result it gives me no error:

> In[370]:= parameter2["BestFitParameters"]

> Out[370]= {ltime->9.12519}

> 

> hope somebody can help...as this drives me mad...

> 

> thank you very much

> 

>  NuKtoBi

> 




  • Prev by Date: Re: NonlinearModelFit and ParameterTable
  • Next by Date: Re: Manipulating FinancialData[]
  • Previous by thread: Re: NonlinearModelFit and ParameterTable
  • Next by thread: Re: Re: NonlinearModelFit and ParameterTable