Empirical Bayes multivariate functional regression
Usage
EBmvFR.workhorse(
obj,
W,
X,
tol,
lowc_wc,
init_pi0_w,
control_mixsqp,
indx_lst,
nullweight,
cal_obj,
verbose,
maxit,
max_step_EM
)Arguments
- obj
an object of class EBmvFR
- W
a list in which element D contains matrix of wavelet d coefficients and element C contains the vector of scaling coefficients
- X
matrix of size n by p contains the covariates
- tol
Non-negative tolerance for absolute penalized ELBO changes when
cal_obj=TRUE; otherwise for relative coefficient/noise changes and absolute mixture-probability changes.- lowc_wc
list of wavelet coefficients that exhibit too little variance
- init_pi0_w, control_mixsqp, max_step_EM
Legacy optimizer controls retained for call compatibility; the fitting loop uses a single exact responsibility M-step per sweep.
- indx_lst
list generated by gen_wavelet_indx for the given level of resolution
- nullweight
Finite numeric value at least 1, using the same convention as
ashr::ash. Adds(nullweight - 1) * log(pi0)to the ELBO for each fitted mixture, wherepi0is its null-component weight. The default is 10; 1 gives no penalty. The penalty is applied once formixture_normaland once per retained scale formixture_normal_per_scale, without scaling by the number of predictors or wavelet coefficients. Completely excluded scales are left unchanged.- cal_obj
If TRUE, record and monitor the penalized ELBO, including its initial value. Otherwise monitor parameter changes.
- verbose
If
verbose = TRUE, the algorithm's progress, and a summary of the optimization settings are printed to the console.- maxit
Maximum number of complete coordinate-ascent sweeps.