R/util.R

Defines functions .ConstructCall .SetPar .Log

.Log <- function(...) {
  if(getOption('SMVerbose', TRUE)) cat(...)
}

.SetPar<-function(parList){
  
  stopifnot(is.list(parList))
  
  for (p in names(parList)){
    eval(parse(text=gsub("x",p,"par(x=parList$x)")))
  }
  
}

.ConstructCall<-function(responseVar,fixedStruct,randomStruct){
  return(paste(responseVar,"~",fixedStruct,"+",randomStruct,sep=""))
}
timnewbold/StatisticalModels documentation built on Aug. 25, 2023, 4:58 p.m.