R/getSigmaR.R

Defines functions getSigmaR

Documented in getSigmaR

getSigmaR <- function(model, digits=NULL)
{
  ## 1  Parse args
  x <- if(class(model)=="scape") model$Dev else model  # allow data frame
  if(is.null(x))
    stop("element 'Dev' not found")

  ## 2  Create output
  output <- x$sigmaR
  if(!is.null(digits))
    output <- round(output, digits=digits)

  output
}
arnima-github/scape documentation built on Jan. 17, 2024, 2:39 p.m.