R/buildMarginalOffset.R

Defines functions buildMarginalOffset

Documented in buildMarginalOffset

#' Build an offset matrix from an marginal model object
#'
#' @param indepModel The fitted marginal model, a list
#' @param invLink The inverse link function
#'
#' @return an offset matrix of the size of the data
buildMarginalOffset = function(indepModel, invLink){
    invLink(outer(indepModel$rowOff, indepModel$colOff, "+"))
}

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.