R/set.back.R

Defines functions set.back

set.back <-
function(x,g,exp.vals,prmtrs){
  
  zig.hat <- exp.vals$zig.hat[g,]; w.i <- exp.vals$ew[,1,g]; p <- prmtrs$p 
  A <- sum(w.i*zig.hat);
  Z.x <- apply(x,2,weighted.sum,wt=zig.hat);
  n.g <- sum(zig.hat);
  alpha <- (Z.x - n.g*(prmtrs$mu[g,]))/A
  return(alpha)
}

Try the MixSAL package in your browser

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

MixSAL documentation built on May 2, 2019, 7:04 a.m.