R/sginitc.R

sginitc <-
function(G,sg,pig,p,n,x){
	sgc <- matrix(0,p,p)
	for(g in 1:G){
		sgc <- sgc + pig[g]*sg[,,g]
	}
	sgc
}

Try the mmtfa package in your browser

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

mmtfa documentation built on May 2, 2019, 1:45 p.m.