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
}

Try the scape package in your browser

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

scape documentation built on Nov. 23, 2020, 5:08 p.m.