An optimized version of the LSS analysis that avoids creating large intermediate
matrices, providing a significant speedup and lower memory usage for the pure R
implementation.
Usage
lss_optimized(Y = NULL, bdes, dset = NULL, use_cpp = TRUE)
Arguments
- Y
A numeric matrix where rows are timepoints and columns are voxels/features.
- bdes
A list containing the design matrices.
- dset
Optional dataset object.
- use_cpp
Logical. If TRUE (default), uses the C++ implementation. If FALSE,
uses the new optimized R implementation.
Value
A numeric matrix of LSS beta estimates.