A factor analysis of students class attendance and academic performance