powered by
get the lognormal parameters by expected value.
estimateParmsLognormFromSample(x, na.rm = FALSE)
numeric vector of sampled values
a logical value indicating whether NA values should be stripped before the computation proceeds.
# 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