R/bayesx.construct.generic.smooth.spec.R

Defines functions bayesx.construct.generic.smooth.spec

bayesx.construct.generic.smooth.spec <- function(object, dir, prg, data) 
{
  term <- paste(object$term, sep = "", collapse = "*")
  if(!is.null(object$xt)) {
    term <- paste(term, "(", sep = "")
    term <- paste(do.xt(term, object, NULL, TRUE), ")", sep = "")
  }
  if(object$by != "NA")
    term <- make_by(term, object, data)

  return(term)
}

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, 9:11 a.m.