Convenience accessor that returns a data frame of producer ids
and their z-scored LOO influence, ordered from most-influential
(lowest, most negative z_score) to least. Accepts either a
signal matrix (runs rel_loo() under the hood) or an existing
rcisignal_rel_loo result object (cheap, no recomputation).
Arguments
- x
Either a pixels x participants signal matrix or an
object of class rcisignal_rel_loo (as returned by rel_loo()).
- ...
Passed to rel_loo() when x is a signal matrix
(e.g. flag_threshold, flag_method).
Value
A data frame with columns participant_id,
correlation, z_score, flag, sorted by z_score
ascending.
Examples
if (FALSE) { # \dontrun{
n_pix <- 32L * 32L
n_prod <- 20L
set.seed(1)
signal_matrix <- matrix(rnorm(n_pix * n_prod), n_pix, n_prod)
rel_loo_z(signal_matrix) # accept matrix directly
rel_loo_z(rel_loo(signal_matrix)) # or chain from a result
} # }