R/bayesx.construct.R

Defines functions bayesx.construct.default bayesx.construct

Documented in bayesx.construct

bayesx.construct <- function(object, dir, prg, data) 
{
  UseMethod("bayesx.construct")
}

bayesx.construct.default <- function(object, dir, prg, data) 
{
  cl <- class(object)
  bs <- gsub(".smooth.spec", "", cl, fixed = TRUE)
  info <- if(cl == paste(bs, "smooth.spec", sep = ".")) {
    paste("with basis", sQuote(bs))
  } else {
    paste("of class", sQuote(cl))
  }
  stop(paste("BayesX does not support smooth terms ", info,
    ", it is recommended to use sx() for specifying smooth terms",
    sep = ""))
}

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.