distCheck("norm", mean = 1, sd = 1)
distCheck("lnorm", meanlog = 0.5, sdlog = 2, robust=FALSE)
## here, true E(X) = exp(mu + 1/2 sigma^2) = exp(.5 + 2) = exp(2.5) = 12.182
## and Var(X) = exp(2*mu + sigma^2)*(exp(sigma^2) - 1) = 7954.67
Run the code above in your browser using DataLab