R/LmmEnvelope.R

Defines functions LmmEnvelope

Documented in LmmEnvelope

LmmEnvelope <-
function(X, r = NULL, NumberOfSimulations = 100, Alpha = 0.05, ReferenceType = "", 
         Global = FALSE, verbose = interactive()) {
  # Calculate the envelope of Kmm
  Envelope <- KmmEnvelope(X, r, NumberOfSimulations, Alpha, ReferenceType, Global, verbose)
  # Transform K to L
  Columns <- names(Envelope)[-1]
  for(i in Columns) {
    Envelope[[i]] <- sqrt(Envelope[[i]]/pi)-Envelope$r
  }
  attr(Envelope, "ylab") <- "Lmm(r)"
  attr(Envelope, "yexp") <- "Lmm(r)"
  attr(Envelope, "fname") <- "Lmm"
  return (Envelope)
}

Try the dbmss package in your browser

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

dbmss documentation built on May 31, 2023, 8:30 p.m.