R/wqmf.phisl.R

#' @importFrom stats dnorm dlogis
wqmf.phisl <-
function (z, distribution) 
{
    switch(basic.distribution(distribution), 
           
           sev      = { p <- z - exp(z)      }, 
           normal   = { p <- logb(dnorm(z))  }, 
           logistic = { p <- logb(dlogis(z)) }, 
           lev      = { p <- -z - exp(-z)    }, 
           
           { 
             
             stop(paste(distribution, "is not a recognized distribution"))
             
           })
  
    return(p)
}

Try the teachingApps package in your browser

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

teachingApps documentation built on July 1, 2020, 5:58 p.m.