R/set.hlevel.stuff.R

Defines functions set.hlevel.stuff

set.hlevel.stuff <-
function(x, outfile, control)
{
  for(k in 1L:length(x)) {
    if(is.null(x[[k]]$hlevel))
      x[[k]]$hlevel <- 1L
    x[[k]]$hlevel <- x[[k]]$hlevel + 1L
    x[[k]]$first <- FALSE
    x[[k]]$outfile <- outfile
    x[[k]]$iterations <- control$iterations
    x[[k]]$burnin <- control$burnin
    x[[k]]$step <- control$step
    x[[k]]$level1 <- control$level1
    x[[k]]$level2 <- control$level2
    if(!is.null(x[[k]]$h.random))
      x[[k]]$h.random <- set.hlevel.stuff(x[[k]]$h.random, outfile, control)
  }

  return(x)
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 3:01 p.m.