Seeks to minimize the variance of the ratio of two parameters, for example, willingness-to-pay.

calculate_c_error(design_vcov, p, dudx, return_all)

Arguments

design_vcov

A variance-covariance matrix returned by derive_vcov or returned by an estimation routine. The matrix should be symmetrical and K-by-K

p

Prior values

dudx

A character string giving the name of the prior in the denominator. Must be specified when optimizing for 'c-error'

return_all

If `TRUE` return a K or K-1 vector with parameter specific error measures. Default is `FALSE`.

Value

A vector giving the variance of the ratio for each K-1 parameter or a single number with the sum of the variances used for optimization