| .lagrangian_project_woodbury | R Documentation |
Applies the constrained projection for the structured-correlation
Woodbury path. In supplement notation,
\mathbf{G}^{1/2} = \mathbf{G}_{\mathrm{on}}^{1/2}\mathbf{F}^{1/2},
where \mathbf{G}_{\mathrm{off}}^{-1} = \mathbf{E}\mathbf{J}\mathbf{E}^{\top}
and \mathbf{F}^{1/2} carries the low-rank correction.
.lagrangian_project_woodbury(
GhalfXy_V,
Ghalf_corrected,
A,
K,
p_expansions,
R_constraints,
constraint_value_vectors,
family,
wb_sqrt,
parallel_aga,
parallel_matmult,
cl,
chunk_size,
num_chunks,
rem_chunks,
parallel_qr = FALSE
)
GhalfXy_V |
Numeric column vector of length |
Ghalf_corrected |
List of |
A |
Constraint matrix ( |
K, p_expansions, R_constraints |
Integer dimensions. |
constraint_value_vectors |
Constraint RHS list encoding
|
family |
GLM family object. |
wb_sqrt |
Output of |
parallel_aga, parallel_matmult |
Logical flags. |
cl, chunk_size, num_chunks, rem_chunks |
Parallel parameters. |
The routine follows the same four transformed-OLS steps as
.lagrangian_project: form \mathbf{y}^{*},
form \mathbf{X}^{*}, solve the OLS projection, then back-transform.
Only steps involving \mathbf{G}^{1/2} differ, and those are handled
as a block-diagonal multiplication through
\mathbf{G}_{\mathrm{on}}^{1/2} plus a rank-r update.
Internally, \mathbf{F}^{1/2} is stored as
\mathbf{I} - \mathbf{Q}\mathbf{C}\mathbf{Q}^{\top}, where
Q is the basis corresponding to the supplement matrix
\mathbf{Q} and C is diagonal.
A list of K+1 coefficient column vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.