Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Regression Common Functions Package >

HatDiagonal

HatDiagonal
is a possible value for the RegressionReport option which represents the diagonal of the hat matrix.
  • HatDiagonal is used in diagnostics for influence of data points.
  • The hat matrix H is given by H=X.(X.X)-1X where X is the design matrix.
  • If y is the response vector, then H.y yields the predicted response vector.
Needs["LinearRegression`"]
Sample data:
In[2]:=
Click for copyable input
HatDiagonal for a linear regression:
In[3]:=
Click for copyable input
Out[3]=
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team