Re: Weights syntax in NonlinearRegress/Fit
- To: mathgroup at smc.vnet.net
- Subject: [mg34091] Re: Weights syntax in NonlinearRegress/Fit
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 2 May 2002 03:49:36 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <aaols2$een$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Weights->Table[yourfunctionOfI[i],{i,1,10^2}]
?
or
Weights->yourfunctionOfX /@ yourXData
Regards
Jens
Dion Lewis wrote:
>
> Hi,
>
> It seems I have an identical problem to Frederic Fontaine dated 22 Jun
> 1999 that didn't get answered in the threads.
>
> I'm ALSO having troubles with the syntax of the Weights option in
> NonlinearRegress. I want to input an equation not simply values.
> I'm not a member of this list so Im not sure if this will get back to me
> either...
> I'd appreciate any help, for ease I have cut and pasted his eloquent
> version...
>
> NonlinearRegress, Weights, Syntax
> Subject: [mg34091] NonlinearRegress,Weights, Syntax
> From: Frederic Fontaine <F.Fontaine at fz-rossendorf.de>
To: mathgroup at smc.vnet.net
>
> Hi,
>
> I've been fighting against the syntax of the option "Weights" in the
> NonlinearRegress command. I want to fit large data sets and I don't want
> to type hundreds of values. I'd rather use a function defining the weight
> of each data points. But how to do it with Mathematica 3 for Unix?
> For instance:
> NonlinearRegress[dataset, fitfunction(x,para),{x},{para},Weights->{???}]
> I would appreciate someone helping me remove the question marks!
>
> **Edited from F.F.**
>
> Regards,
> Dion Lewis
> University of Tasmania
> Physics Department