Skip to contents

Assesses how accurately the subject-specific rotation matrices (`R_i`) estimated by HATSA match the true rotations.

Usage

compute_rotation_recovery(hatsa_object, R_true_list, ...)

Arguments

hatsa_object

A fitted `hatsa_projector` object, which contains `R_final_list` (list of estimated k x k rotation matrices).

R_true_list

A list of true k x k rotation matrices, corresponding to each subject in `hatsa_object`.

...

Additional arguments passed to `misalign_deg` function.

Value

A numeric vector of misalignment angles in degrees, one for each subject. Returns `NA` for subjects where either the estimated or true rotation is missing or invalid for comparison.

Examples

# See core-hatsa-toy-example.Rmd for usage.