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 Jan. 20, 2026, 9:07 a.m.