| .bf_split_components | R Documentation |
Partitions the per-partition design matrices, penalty matrices, and constraint matrix into "spline" (columns receiving partition-specific coefficients) and "flat" (columns receiving a single shared coefficient across all partitions) subsets.
.bf_split_components(
X,
flat_cols,
p_expansions,
K,
Lambda,
L_partition_list,
A,
qr_pivot_smoothing_constraints = TRUE,
parallel_qr = FALSE,
cl = NULL,
constraint_values
)
X |
List of |
flat_cols |
Integer vector of flat column indices. |
p_expansions |
Integer; total columns per partition. |
K |
Integer; number of interior knots. |
Lambda |
|
L_partition_list |
List of partition-specific penalty matrices. |
A |
Full |
constraint_values |
List of constraint right-hand sides. |
A named list with elements:
List of K+1 matrices, spline columns only.
List of K+1 matrices, flat columns only.
nc_s \times nc_s penalty submatrix.
nc_f \times nc_f penalty submatrix.
List of partition-specific penalty submatrices for the spline columns.
Spline-only constraint matrix (columns pruned and rank-reduced via pivoted QR).
Integer; number of columns in
A_spline.
List of constraint RHS vectors restricted to spline rows.
Integer vector of spline column indices.
Integer; number of spline columns.
Integer; number of flat columns.
Flat-only constraint matrix (rows for flat coefficients, columns pruned and rank-reduced). Used to enforce mixed constraints on the flat update step.
Integer; number of columns in A_flat.
The original full constraint matrix A, retained
for mixed-constraint enforcement.
Integer vector of flat-coefficient row indices in the full P-space.
Integer vector of spline-coefficient row indices in the full P-space.
Logical; TRUE if any constraint column in A has nonzero entries on both spline and flat rows.
Integer vector of column indices in the original A that are mixed (touch both spline and flat rows).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.