R/calcPredictionErrorCV.R

Defines functions `calcPredictionErrorCV`

`calcPredictionErrorCV` <-
function(gp, X, newTheta, varMatrix, nugget) {
        r = calcCorOneObs(X, gp$beta, gp$a, newTheta)
        return (  (gp$sig2 + nugget) - gp$sig2*r%*%solve(varMatrix)%*%t(r)*gp$sig2  )
}

Try the mlegp package in your browser

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

mlegp documentation built on March 18, 2022, 5:29 p.m.