Calculates the derivative of the penalty matrix \(\textbf{G}\) with respect to the smoothing parameter lambda (\(\lambda\)), supporting both global and partition-specific penalties. This is related to the derivative of the diagonal weight matrix \(1/(1+\textbf{x}^{T}\textbf{U}\textbf{G}\textbf{x})\) w.r.t. the penalty.
compute_dG_dlambda(
G,
L,
K,
lambda,
unique_penalty_per_partition,
L_partition_list,
parallel,
cl,
chunk_size,
num_chunks,
rem_chunks
)
A list of derivative matrices \(d\textbf{G}/d\lambda\) for each partition
A list of penalty matrices \(\textbf{G}\) for each partition
The base penalty matrix \(\textbf{L}\)
Number of partitions minus 1 (\(K\))
Smoothing parameter value \(\lambda\)
Logical indicating partition-specific penalties
Optional list of partition-specific penalty matrices \(\textbf{L}_k\)
Logical to enable parallel processing
Cluster object for parallel computation
Size of chunks for parallel processing
Number of chunks
Remainder chunks