calculate_efficiency {spdesign} | R Documentation |
Calculate efficiency
Description
The function is called inside evaluate_design_candidate
Usage
calculate_efficiency(
prior_values,
design_env,
model,
dudx,
return_all = FALSE,
significance = 1.96
)
Arguments
prior_values |
a list or vector of assumed priors |
design_env |
A design environment in which to evaluate the the function to derive the variance-covariance matrix. |
model |
A character string indicating the model to optimize the design for. Currently the only model programmed is the 'mnl' model and this is also set as the default. |
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'. |
significance |
A t-value corresponding to the desired level of significance. The default is significance at the 5 t-value of 1.96. |
Value
A list with a named vector of efficiency criteria and the variance-covariance matrix