R/PsiHatCalc.R

Defines functions `PsiHatCalc`

`PsiHatCalc` <-
function(u,H){
        K<-dim(H)[[1]]
        p<-dim(H)[[2]]
        out<-array(NA,c(K,p,p))
        HU<-H*u
        for (i in 1:K){
            out[i,,]<-matrix(HU[i,],ncol=1) %*% matrix(HU[i,],nrow=1)
        }
        out
    }

Try the saws package in your browser

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

saws documentation built on June 24, 2022, 1:07 a.m.