CalcHatMatrix: CalcHatMatrix

Description Usage Arguments Value Examples

View source: R/CalcHatMatrix.R

Description

This function returns the hat matrix according to a design matrix

Usage

1
CalcHatMatrix(X, true.beta)

Arguments

X

design matrix

true.beta

vector of true betas

Value

the hat matrix of a design matrix

Examples

1
CalcHatMatrix(matrix(data=c(1,2,3,2),nrow=2),true.beta=c(1,2))

wlktan/surrogateSampling documentation built on May 23, 2019, 3:07 p.m.