R/EMJMCMC2016-method-lambda.R

EMJMCMC2016$methods(
  # lambda function for mtmcmc
  lambda = function(c, alpha, g1, g2, g.domain.pos) # simmetric choice driving function
  {
    if ((c != 0)) {
      res <- ((((1 / c) * (1 + (g1 + g2) * (g.domain.pos)) / (1 - (g1 + g2) * (1 - g.domain.pos)))^alpha))
      # !#if(printable.opt)print(res)
      return(res)
    } else {
      # !#if(printable.opt)print(1)
      return(1)
    }
  }
)

Try the EMJMCMC package in your browser

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

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.