R/fit_nor.R

Defines functions fit_nor

Documented in fit_nor

#' Fit Normal distribution using the 'lmom' package
#'
#' @param sl1 sample 1st l-moment
#' @param sl2 sample 2nd l-moment
#' @param st3 sample 3rd l-moment ratio
#' @param st4 sample 4th l-moment ratio
#'
#' @return A vector of parameters as mu (location) and sigma (scale).
#' @author Mohanad Zaghloul [aut, cre], Simon Michael Papalexiou [aut, ths], Amin Elshorbagy [aut, ths]
#' @importFrom lmom pelnor
#' @export
#'
#' @examples
#' 
#' nor_par <- fit_nor(15, 1.7, 0.04, -0.02)
#' 
fit_nor <- function(sl1, sl2, st3, st4) {
  parameters <- pelnor(c(sl1, sl2, st3, st4))
  return(parameters)
}

Try the LMoFit package in your browser

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

LMoFit documentation built on May 29, 2024, 9:15 a.m.