prior.fn: prior.fn

Usage Arguments

Usage

1
2
  prior.fn(parms, x, alpha, distn, central.tendency = NULL,
    trait = NULL)

Arguments

parms

target for optimization

x

vector with c(lcl, ucl, ct) lcl / ucl = confidence limits, ct = entral tendency

alpha

quantile at which lcl/ucl are estimated (e.g. for a 95

\item

distnnamed distribution, one of 'lnorm', 'gamma', 'weibull', 'beta'; support for other distributions not currently implemented

\item

central.tendencyone of 'mode', 'median', and 'mean'

\item

traitname of trait, can be used for exceptions (currently used for trait == 'q')

parms Prior fitting function for optimization This function is used within DEoptim to parameterize a distribution to the central tendency and confidence interval of a parameter. This function is not very robust; currently it needs to be tweaked when distributions require starting values (e.g. beta, f, DEoptim(fn = prior.fn, lower = c(0, 0), upper = c(1000, 1000), x=c(2, 6, 3.3), alpha = 0.05, distn = 'lnorm')$optim$bestmem David LeBauer


dlebauer/pecan-priors documentation built on Sept. 26, 2019, 5:03 a.m.