R/llogSummaryStats.R

Defines functions llogSummaryStats

Documented in llogSummaryStats

#'
#' @rdname LogLogistic
#'
#'




llogSummaryStats <- function(shape,scale){

    a <- shape
    s <- scale

    out <- data.frame(median=exp(s))

    out$mean <- ifelse(1/a > 1, (exp(s)*pi*a)/(sin(pi*a)), NA)

    out$mode <- ifelse(1/a > 1, exp(s)*((1/a - 1)/(1/a + 1))^a,0)

    out$var <- ifelse(1/a > 2, (exp(s)^2)*(2*pi*a/sin(2*pi*a) - (a*pi/sin(a*pi))^2),NA)

    return(out)

}#end llogSummaryStats

Try the windAC package in your browser

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

windAC documentation built on March 31, 2023, 9:30 p.m.