Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9688
| From | "Dan O'Brien" <danobrie@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: nonlinearmodelfit problem |
| Date | 2012-04-18 07:53 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jmlrth$jcd$1@smc.vnet.net> (permalink) |
| References | <jm4vr2$2j0$1@smc.vnet.net> <201204171002.GAA08442@smc.vnet.net> |
I have had the same sort of problems. How have you set up your
simultaneous fit? If it is set up so that your data is in the form
{{1,x11,y11},{1,x12,y12}......{2,x2n,y2n}}
where the first index is for the dataset (1 or 2)
and your function is set up with kroneckerdelta
nlm[dataset,x,parameters]:=KroneckerDelta[dataset-1]nlm1[parameters]+KroneckerDelta[dataset-2]nlm2[parameters]
Then you could use the Weights option in NonlinearModelFit
Weights->(If[#1==2,100000,1]&) (if the larger ranged dataset is dataset 1)
-Dan
On 4/17/2012 5:02 AM, M.Roellig wrote:
> On Thursday, April 12, 2012 12:16:02 AM UTC+2, L. Mattera wrote:
>> Hi
>> my name is Lorenzo Mattera, I am using since a short time Mathematica.
>> I am trying to solve a fitting problem where two sets of data have to be
>> fitted by two models depending on the same parameters.
>> I found very helpful the suggestions reported at
>> http://forums.wolfram.com/mathgroup/archive/2011/Sep/msg00555.html (and
>> references therein) so that I was able to
>> produce a working procedure. However, I have a "small" problem:
>> the two set of data have quite different weights as one is in the
>> 0-100000 range while the other is in the 0-1 range so that one of the two is
>> irrelevant in the fitting procedure.
>> It seems to me that NonlinearModelFit minimizes the sum of the squared
>> residuals,
>> any way to minimize the squared normalized residuals?
>> Perhaps is one of the options, but so far I could not find it.
>> Tank you for the help
>> best regards
>> L. Mattera
> Hi,
>
> you could try to fit in the logarithmic domain.
>
> Markus
>
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
nonlinearmodelfit problem "L. Mattera" <mattera@fisica.unige.it> - 2012-04-11 22:16 +0000 Re: nonlinearmodelfit problem "M.Roellig" <markus.roellig@googlemail.com> - 2012-04-17 10:03 +0000 Re: nonlinearmodelfit problem "Dan O'Brien" <danobrie@gmail.com> - 2012-04-18 07:53 +0000
csiph-web