Description Usage Arguments Value Author(s)

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

1 | ```
hat_matrix_cpp(X, mcov, S_scale_dist, h)
``` |

`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) |

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

Martin Jullum

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.