R/bayesx.construct.tensor.smooth.spec.R

bayesx.construct.tensor.smooth.spec <- bayesx.construct.t2.smooth.spec <-
function(object, dir, prg, data)
{
  by <- object$term[1L]
  term <- object$term[2L]
  object <- object$margin[[1L]]
  object$term <- term
  object$by <- by
  term <- bayesx.construct(object, dir, prg, data)
  term <- gsub("psplinerw2", "pspline2dimrw2", term)
  term <- gsub("psplinerw1", "pspline2dimrw1", term)

  return(term)
}
datacamp/R2BayesX documentation built on May 14, 2019, 7:10 p.m.