Compute leverage scores and Cook's distance for model diagnostics
in rrr
estimation.
rrr.leverage(Y, X = NULL, nrank = 1, qr.tol = 1e-07)
a matrix of response (n by q)
a matrix of covariate (n by p)
an integer specifying the desired rank
tolerence to be passed to `qr'
`rrr.leverage' returns a list containing a vector of leverages and a scalar of the degrees of freedom (sum of leverages). `rrr.cooks' returns a list containing
resisuals matrix
mean squared error
leverage
Cook's distance
degrees of freedom
Chen, K. Model diagnostics in reduced-rank estimation. Statistics and Its interface, 9, 469--484.