Weights

Weights
is an option for various fitting and other functions which specifies weights to associate with data elements.

DetailsDetails

  • Weights->Automatic associates weight 1 with all data elements.
  • Weights->{w1,w2,} associates weight with the i^(th) data element.
  • Weights->func associates weight with the i^(th) data element.
  • Using VarianceEstimatorFunction->(1&) and Weights->{1/Δy12,1/Δy22,}, is treated as the known uncertainty of measurement and parameter standard errors are effectively computed only from the weights. »

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Fit a model using equal weights:

In[1]:=
Click for copyable input
Out[1]=

Give explicit weights to the data points:

In[2]:=
Click for copyable input
Out[2]=

Compute weights from values:

In[3]:=
Click for copyable input
Out[3]=

Compute weights from the response values:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2008
(7.0)