Compute the ML estimates of the expected values and the log of the expected values given several samples of lognormal data, separated by a factor variable. For internal use in lndci
and lnrci
.
lndest(x, f)
lnrest(x, f)
a numeric vector
a factor variable (with at least two levels)
A list with elements
a numeric vector, the point estimates for each factor level
a numeric vector, the variance estimates (evaluated at the point estimates) for each factor level
a numeric vector, the sample size of each factor level
Chen, Y-H, Zhou, X-H (2006). Interval estimates for the ratio and the difference of two log-normal means. Statistics in Medicine 25, 4099-4113.