hat_matrix_cpp: Computing single H matrix in AICc-function using the...

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Computing single H matrix in AICc-function using the Mahalanobis distance

Usage

1
hat_matrix_cpp(X, mcov, S_scale_dist, h)

Arguments

X

matrix with "covariates"

mcov

covariance matrix

S_scale_dist

logical indicating whether the Mahalanobis distance should be scaled with the number of variables

h

numeric specifying the scaling (sigma)

Value

Matrix of dimension ncol(X)*ncol(X)

Author(s)

Martin Jullum


shapr documentation built on Jan. 28, 2021, 5:06 p.m.