R/lambda.check.R

Defines functions lambda.check

Documented in lambda.check

lambda.check <-
function (lambda)
{
  if (is.null (lambda))  ## check for existence of attribute 'lambda'
    stop ("Tuning parameter lambda missing \n")
 
  if (any (lambda < 0))   ## check for non-negativity of lambda
    stop ("lambda must be non-negative \n")
}

Try the lqa package in your browser

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

lqa documentation built on May 30, 2017, 3:41 a.m.