Weights

Weights

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

Details

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

Examples

open allclose all

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]=

Scope  (2)

Applications  (1)

Properties & Relations  (2)

See Also

LinearModelFit  NonlinearModelFit  GeneralizedLinearModelFit  LogitModelFit  ProbitModelFit

Introduced in 2008
(7.0)