Fits the delta design subspace from a full cell-level design after QR
residualization against a reduced design. With
permutation = "global_task_pls", compares the delta statistic to the
package's ordinary global Task PLS permutation null. This global null is not
a reduced-model-preserving nested test.
Usage
compare_design_subspaces(
x,
reduced,
full,
fit = NULL,
spec = NULL,
design = NULL,
condition_key = NULL,
statistic = c("trace", "largest_root"),
weights = c("cell_equal", "subject_count", "row_weights"),
nperm = 0L,
permutation = c("none", "global_task_pls", "reduced_model"),
permsamp = NULL,
progress = FALSE
)Arguments
- x
A Task PLS
pls_result, or apls_specwhenfitis supplied.- reduced
One-sided reduced formula.
- full
One-sided full formula.
- fit
Optional fitted
pls_resultwhenxis apls_spec.- spec
Optional
pls_specused to recompute permuted cross-block matrices. Required fornperm > 0whenxis apls_result.- design
Optional
pls_designobject.- condition_key
Optional condition metadata.
- statistic
"trace"or"largest_root".- weights
"cell_equal","subject_count", or"row_weights"to use storedresult$task_pls$row_weights.- nperm
Number of permutations.
- permutation
"none"or"global_task_pls".- permsamp
Optional permutation order matrix.
- progress
Logical; show permutation progress messages.