A "base" function for searchlight analysis
run_searchlight_base.Rd
This function implements the generic logic for running a searchlight:
Checks
radius
andmethod
.For "standard" searchlight, calls
do_standard(...)
.For "randomized", calls
do_randomized(...)
withniter
times.Handles the
combiner
function or string ("pool", "average").
Usage
run_searchlight_base(
model_spec,
radius = 8,
method = c("randomized", "standard"),
niter = 4,
combiner = "average",
...
)
Arguments
- model_spec
A model specification object (e.g.,
mvpa_model
,vector_rsa_model
, etc.).- radius
Numeric searchlight radius (1 to 100).
- method
Character: "standard" or "randomized".
- niter
Number of iterations if
method="randomized"
.- combiner
Either a function that combines partial results or a string ("pool", "average") that selects a built-in combiner.
- ...
Additional arguments passed on to
do_standard
ordo_randomized
.