R/meta.gmcm.loglik.R

# A wrapper for dgmcm.loglik in the meta analysis case
# where the loglik have arguments in the transformed parameter space.
meta.gmcm.loglik <- function (tpar, u, rescale = TRUE, positive.rho = TRUE) {
  # par is a vector of transformed (if rescale == TRUE) parameters
  if (rescale) {
    par <- tt(tpar, ncol(u), positive.rho = positive.rho)
  } else {
    par <- tpar
  }
  return(dgmcm.loglik(theta = meta2full(par, ncol(u)), u))
}

Try the GMCM package in your browser

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

GMCM documentation built on Nov. 6, 2019, 1:08 a.m.