You cannot use `optimize' when there are two or more parameters to be
optimized. I dont know if other have suggested any solution to this, but
here are 2 approaches:
# Estimating LCL and UCL separately using `optimize'.
prior.lcl - function(x, alpha, mean, var) {
a - abs(plnorm(x, mean, var)
David LeBauer dlebauer at illinois.edu writes:
Hi,
I would like to write a function that finds parameters of a log-normal
distribution with a 1-alpha CI of (x_lcl, x_ucl):
However, I don't know how to optimize for the two unknown parameters.
Try optim instead.
Hi,
I would like to write a function that finds parameters of a log-normal
distribution with a 1-alpha CI of (x_lcl, x_ucl):
However, I don't know how to optimize for the two unknown parameters.
Here is my unsuccessful attempt to find a lognormal distribution with
a 90%CI of 1,20:
prior -
3 matches
Mail list logo