R/print_final.R

Defines functions .print_final

.print_final  <- function(selected_loci, map,  extBIC, lambda )
{
  ## internal function: used by AM
  if (length(selected_loci) == 1 & any(is.na(selected_loci)))
  {
      message("No significant marker-trait associations have been found. \n\n")
     if (is.null(lambda)){
        message("Lambda value for model selection was set to its default value of 1. ")
     } else {
        message("Lambda value for model selection was set to  ", round(lambda,3) , " ")
     } 

  }  else {
     .print_results(selected_loci=selected_loci, map=map,  extBIC=extBIC)
     if (is.null(lambda)){
        message("Lambda value for model selection was set to its default value of 1. ")
     } else {
        message("Lambda value for model selection was set to  ", round(lambda,3) , " ")
     } 
  }   ## end if else
  message("")

}  ## end function print.finals

Try the Eagle package in your browser

Any scripts or data that you put into this service are public.

Eagle documentation built on Nov. 30, 2021, 9:08 a.m.