R/predictNewZ.R

Defines functions `predictNewZ`

`predictNewZ` <-
function(gp, newTheta) {
  r = calcCorOneObs(gp$X, gp$beta, gp$a, newTheta)
  newY = predictMu(gp, newTheta) + gp$sig2 * r %*% gp$invVarMatrix %*% (gp$Z - gp$mu)
  return (newY)
}

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.