View source: R/compute_wls_error.R
compute_wls_error | R Documentation |
This function calculates the weighted least squares (WLS) error between
simulated truncated Gamma samples and expert-provided statistics.
It is used internally by trunc_gamma_para()
and is not
intended for direct user access.
compute_wls_error(sim_data, expert_values, weights)
sim_data |
Numeric vector. A sample of simulated truncated Gamma values. |
expert_values |
Named list. A list containing expert-provided statistics,
including |
weights |
Numeric vector. A vector of weights for the WLS calculation,
corresponding to the importance of |
Numeric. The weighted least squares error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.