R/buildMuMargins.R

Defines functions buildMuMargins

Documented in buildMuMargins

#' Build the marginal mu matrix
#'
#' @param x The marginal parameters begin estimated
#' @param otherMargin The parameters of the other margin
#' @param col A logical, are the column parameters being estimated?
#'
#' @return a matrix of means
buildMuMargins = function(x, otherMargin, col){
    if(col) outer(otherMargin, x, "+") else outer(x, otherMargin, "+")
}

Try the combi package in your browser

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

combi documentation built on Nov. 8, 2020, 5:34 p.m.