Internal function that computes weights for model averaging across K candidate GEV submodels. Supports multiple weighting schemes including likelihood-based, generalized L-moment distance, and median-based methods. Optionally includes BMA prior integration.
weight.com(
data = NULL,
numk = NULL,
hosking = NULL,
kpar = NULL,
numom = 3,
xqa = NULL,
varcom = TRUE,
boot.lme = TRUE,
cov.lme = NULL,
surr = FALSE,
type = "full",
trim = NULL,
cov.type = "ratio",
bma = TRUE,
pen = "norm"
)A list containing:
Weighting method name
Number of submodels
MA weight vector (length numk)
BMA weight vector (length numk)
Quantile matrix (numq x numk)
Candidate xi values
Submodel fitting results
Surrogate quantile matrix (if surr=TRUE)
Numeric vector of data.
Number of candidate submodels.
List containing LME results, MLE, and bootstrap information.
Numeric vector of candidate xi values.
Number of L-moments to use (default 3).
Probability vector for surrogate model fitting.
Logical. Whether to compute variance components (default TRUE).
Logical. Whether bootstrap LME was performed (default TRUE).
Pre-computed LME covariance (default NULL).
Logical. Whether to compute surrogate quantiles (default FALSE).
Type of computation: "full" (default).
Left trimming level for L-moments.
Covariance type: "ratio" or "lambda" (default "ratio").
Logical. Whether to compute BMA weights (default TRUE).
BMA prior type: "norm" or "beta" (default "norm").