R/gfunction.bet.xi.cc.R

Defines functions gfunction.bet.xi.cc

gfunction.bet.xi.cc <- function(g.bet, xi){
  
  n <- nrow(g.bet[[1]])
  nbet <- length(g.bet)
  
  g.bet.xi <- matrix(NA, nrow = n, ncol = nbet)
  
  k <- 0
  for(m in g.bet){
    k <- k + 1
    g.bet.xi[, k] <- m[, -1, drop = FALSE] %*% xi
  }
  
  g.bet.xi
  
}

Try the gim package in your browser

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

gim documentation built on July 1, 2020, 6:29 p.m.