R/prod_list.R

Defines functions prod_list

Documented in prod_list

#' Product of lists between matrices
#'
#' @param X Data
#' @param beta Parameters
#'
#' @return A list with the products element-wise
#' @export
prod_list = function(X, beta){
  matrix(unlist(purrr::map2(X, beta, `%*%`)), ncol = length(beta))
}

Try the MultRegCMP package in your browser

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

MultRegCMP documentation built on June 22, 2024, 9:47 a.m.