Learn R Programming

r4lineups (version 0.1.1)

face_sim: Compute similarity of faces in a lineup; experimental function

Description

Function to compute the degree to which each face in a set of faces loads onto a common factor computed from the faces.

Usage

face_sim()

Arguments

Details

  • The faces need to be standardized for inter-pupil distance, and for pupil location prior to running the function

  • The user will be asked to choose a set of faces through a dialog box. These should be jpeg files.

  • There is no argument to the function; it gets what it needs from the dialog box. The function prints the lineup array to the viewer pane in R, and reports the loading of each face on the first common factor in a factor analysis (using fa in package psych)

References

Tredoux, C. (2002). A direct measure of facial similarity and its relation to human similarity perceptions. Journal of Experimental Psychology: Applied, 8(3), 180-193. doi:10.1037/1076-898x.8.3.180