R/spatial.pred.R

Defines functions `spatial.pred`

`spatial.pred` <-
function(mu1,mu2,Sigma11,Sigma12,Sigma22,X1){
	pred = mu2 + Sigma12 %*% solve(Sigma11) %*% (X1-mu1)
	var.pred = Sigma22 - Sigma12 %*%solve(Sigma11)%*%t(Sigma12)
	se.pred = sqrt(diag(var.pred))
	return(list(pred=pred,se.pred=se.pred))
}

Try the Stem package in your browser

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

Stem documentation built on May 2, 2019, 8:56 a.m.