Learn R Programming

lognorm (version 0.1.6)

estimateParmsLognormFromSample: estimateParmsLognormFromSample

Description

get the lognormal parameters by expected value.

Usage

estimateParmsLognormFromSample(x, na.rm = FALSE)

Arguments

x

numeric vector of sampled values

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Examples

Run this code
# NOT RUN {
.mu <- log(1)
.sigma <- log(2)
x <- exp(rnorm(50, mean = .mu, sd = .sigma))
estimateParmsLognormFromSample(x)
# }

Run the code above in your browser using DataLab