Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11543

Extracting Parameter Values from NonlinearModelFit

From colang <colangmp@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Extracting Parameter Values from NonlinearModelFit
Date 2012-08-30 08:07 +0000
Message-ID <k1n6vr$e4p$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hi, 

I'm modelling a series (>2000) of data points (5x2 lists) using NonlinearModelFit, and trying to extract the Fitted Parameter Values to separate lists using the following code:

model = a Exp[-k x];
i = 1;
For[i = 1, i <= Length[data],
  {nlm = NonlinearModelFit[data[[i]], {model, k<1}, {a, b}, x]["BestFitParameters"];
   aValues = Append[aValues, nlm[[1, 2]]];
   kValues = Append[kValues, nlm[[2, 2]]]},
  i++
  ];

I'm able to determine the Parameters via nlm, but can't extract the parameter values. 

Any thoughts?

Thanks in advance!

C

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Extracting Parameter Values from NonlinearModelFit colang <colangmp@gmail.com> - 2012-08-30 08:07 +0000

csiph-web