getHatMat: hat matrix calculation of linear model

Description Usage Arguments Value Examples

Description

hat matrix calculation of linear model

Usage

1
getHatMat(limo = NULL, X = NULL)

Arguments

limo

lm object

X

matrix respresenting the design matrix of a linear model

Value

hat matrix

Examples

1
2
3
4
5
6
7
set.seed(42)
y <- rnorm(10)
x <- runif(10)
mod <- lm(y ~ x)

str(getHatMat(mod),1)
str(getHatMat(X = as.matrix(cbind(interc=rep(1,10),x))),1)

davidruegamer/coinflibs documentation built on May 14, 2019, 10:33 a.m.