| .solver_recompute_G_at_estimate | R Documentation |
Given current constrained coefficient estimates result,
recomputes the penalized information matrix
\mathbf{G}_k = (\mathbf{X}_k^{\top}\mathbf{W}_k
\mathbf{D}_k\mathbf{X}_k + \boldsymbol{\Lambda}_k)^{-1} and its
matrix square roots for each partition.
.solver_recompute_G_at_estimate(
X,
y,
result,
K,
Lambda,
family,
order_list,
glm_weight_function,
schur_correction_function,
need_dispersion_for_estimation,
dispersion_function,
observation_weights,
VhalfInv,
parallel_eigen,
parallel_matmult,
cl,
chunk_size,
num_chunks,
rem_chunks,
unique_penalty_per_partition,
L_partition_list,
...
)
X |
List of partition-specific design matrices
|
y |
List of response vectors |
result |
List of current coefficient column vectors
|
K |
Integer; number of interior knots. |
Lambda |
Shared |
family |
GLM family object. |
order_list |
List of index vectors mapping partition rows to original data ordering. |
glm_weight_function |
Function computing GLM working weights
|
schur_correction_function |
Function computing Schur corrections to the information matrix. |
need_dispersion_for_estimation |
Logical; if |
dispersion_function |
Dispersion estimation function. |
observation_weights |
List of observation weights
|
VhalfInv |
Inverse square root correlation matrix, or
|
parallel_eigen, parallel_matmult |
Logical flags for parallel computation. |
cl |
Parallel cluster object. |
chunk_size, num_chunks, rem_chunks |
Parallel distribution parameters. |
unique_penalty_per_partition |
Logical. |
L_partition_list |
List of partition-specific penalty matrices. |
... |
Passed to weight, correction, and dispersion functions. |
This is used after Newton-Raphson convergence in Path 3 of
get_B() and at the final return in blockfit_solve()
when return_G_getB = TRUE. The implementation matches
.recompute_G_at_estimate() exactly; it exists here so both
solvers can call the same numerical core.
A list with components G, Ghalf, and
GhalfInv, each a list of K+1 matrices.
G[[k]] is computed as tcrossprod(Ghalf[[k]]) to
guarantee exact symmetry.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.