lnorm_est: Method of Moments Estimation of Log-Normal distribution

View source: R/lnorm.est.R

lnorm_estR Documentation

Method of Moments Estimation of Log-Normal distribution

Description

function to get the method of moment estimate(s) of log-normal distribution

Usage

lnorm_est(
  data,
  unknown = c("meanlog", "sdlog", "both"),
  meanlog = NULL,
  sdlog = NULL,
  plot = TRUE,
  curvecol = "red",
  ...
)

Arguments

data

A numeric vector.

unknown

A character string specifying which parameter is (are) unknown to the user.

meanlog, sdlog

mean and standard deviation of the distribution on the log scale.

plot

logical which controls whether the histogram of the data along with the density curve of the theoretical log normal distribution with the estimated parameters.

curvecol

color of the theoretical density curve

...

additional plotting parameters

Value

the estimated parameters by the method of moments of the data assuming the underlying distribution is log normal distribution

Examples

lnorm_est(rlnorm(1000),unknown="meanlog",sdlog=1)#meanlog unknown, but sdlog known
lnorm_est(rlnorm(1000),unknown="sdlog",meanlog=0)#sdlog unknown, but meanlog known
lnorm_est(rlnorm(1000),unknown="both")#both will be estimated

MOM documentation built on Aug. 21, 2025, 5:54 p.m.

Related to lnorm_est in MOM...