Refits a VCMoE object under a block-constant coefficient constraint. A local-grid reference uses the established constrained BFGS optimizer; a joint-path reference uses a paper-inspired sample-weighted grid projection and applies the selected constraint after every M-step. This projection is not a generic constrained optimizer, and its diagnostic likelihood need not be monotone.
Arguments
- fit
A
vcmoefit.- constrain
Constraint to impose.
"gating_constant"freezes the gating contrast functions inu;"expert_constant"freezes expert mean functions and family dispersion paths;"all_constant"freezes all fitted coefficient functions.- control
Controls for constrained null fitting. With the default
strict = TRUE, a nonconverged reduced fit is rejected.