Functions for projecting subject-standardised betas or new blocks into DKGE component coordinates.
Convenience wrapper for projecting row-standardised betas onto DKGE components.
Usage
dkge_project_btil(fit, Btil)
dkge_project_block(
fit,
s,
B_s,
Omega_s = NULL,
w_s = NULL,
least_squares = TRUE
)Arguments
- fit
A `dkge` object.
- Btil
Either a qxP matrix or a list of such matrices (e.g. `fit$Btil`).
- s
Block index (subject) to project against.
- B_s
Beta matrix for the new data block.
- Omega_s
Optional weights (vector length P or PxP matrix) matching the columns of `B_s`.
- w_s
Optional subject-level weight (defaults to 1 when omitted).
- least_squares
Logical; pass to [multivarious::project_block()].