R/prior.study.R

Defines functions prior.study

Documented in prior.study

#' @title prior.study
#' @param prior.type prior type, default is "custom"
#' @return
#' @export
#' 
prior.study <- function(prior.type="custom"){
  
  string2 <-   
  "# priors
  n ~ dnorm(0, 0.01)
  a ~ dnorm(0, 0.01)
  alpha.s ~ dnorm(0, 0.01)
  alpha.b ~ dnorm(0, 0.01)
  alpha.u ~ dnorm(0, 0.01)
  alpha.v ~ dnorm(0, 0.01)
  }"

return(string2)
}
JinchengZ/BayesCACE documentation built on June 24, 2021, 4:47 a.m.