HatDiagonal

As of Version 7.0, has become a property of LinearModelFit and NonlinearModelFit.


is a possible value for the RegressionReport option which represents the diagonal of the hat matrix.

更多信息更多信息

  • To use , you first need to load the Regression Common Functions Package. You can do this by using or , which will automatically load the Regression Common Functions Package, or you can load the package directly by using .
  • is used in diagnostics for influence of data points.
  • The hat matrix is given by where is the design matrix.
  • If is the response vector, then yields the predicted response vector.

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

In[1]:=
Click for copyable input

Sample data:

In[2]:=
Click for copyable input

for a linear regression:

In[3]:=
Click for copyable input
Out[3]=
Translate this page: