R/row.slr.resids.R

Defines functions row.slr.resids

row.slr.resids <-
function(Y,x)
{
   X<-cbind(1,x)
   xtx<-t(X)%*%X
   xtx.inv<-ginv(xtx)
   H<-X%*%xtx.inv%*%t(X)
   n<-dim(X)[1]
   I.mtx<-diag(n)
   tres<-(I.mtx-H)%*%t(Y)
   res<-t(tres)
   return(res)
}

Try the HybridMTest package in your browser

Any scripts or data that you put into this service are public.

HybridMTest documentation built on Nov. 8, 2020, 8:29 p.m.