R/mergePars.R

Defines functions mergePars

Documented in mergePars

#' Merge pre-computed components of f(theta1 | theta2, X)
#'
#' For use in the parallel call in wtdMix()
#' 
#' @param x Output from one of the parallel calls in wtdMix()
#' @param y Another output from one of the parallel calls in wtdMix()
#' 
mergePars = function(x, y) {
  x$mix = rbind(x$mix, y$mix)
  x$wts = c(x$wts, y$wts)
  x$wts.e = c(x$wts.e, y$wts.e)
  x$C1 = c(x$C1, y$C1)
  x$nodes.backtransformed = rbind(x$nodes.backtransformed, 
                                  y$nodes.backtransformed)
  x
}

Try the bisque package in your browser

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

bisque documentation built on March 26, 2020, 7:27 p.m.