Temporal RDM wrapper for formula usage
temporal.Rd
Convenience wrapper for temporal_rdm
that simplifies usage in RSA formulas.
Arguments
- index
numeric or integer vector representing trial order or time
- block
optional vector of run/block identifiers
- ...
additional parameters passed to
temporal_rdm
- as_dist
logical; if TRUE return a dist object (default TRUE)
Details
This function provides a shorter name for use in RSA design formulas.
It calls temporal_rdm
with the same parameters.
Examples
if (FALSE) { # \dontrun{
# Use directly in RSA formula
rdes <- rsa_design(
~ task_rdm + temporal(trial_index, block=run, kernel="adjacent", width=2),
data = list(task_rdm = task_rdm, trial_index = 1:100, run = run_ids),
block_var = ~ run
)
} # }