MCPAN (version 1.1-21)

lndest: Point and varioance estimates for expected and log(expected values) of lognormal samples

Description

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.

Usage

lndest(x, f)
lnrest(x, f)

Arguments

x

a numeric vector

f

a factor variable (with at least two levels)

Value

A list with elements

estimate

a numeric vector, the point estimates for each factor level

varest

a numeric vector, the variance estimates (evaluated at the point estimates) for each factor level

n

a numeric vector, the sample size of each factor level

References

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.