Student Feature Queries
Latest Student Feature Values
Specifying <STUDENT_ID>
returns all the latest feature values for the student and the date they were calculated.
Note: Due to the different data types, the value will be in one of the text
, int
, float
or bool
columns.
Single Student Ranked Features
important
Individual feature ranked (IFR) functionality is not included with standard warehouse deployments. If you would like to incorporate IFR, please inquire with Sales.
This query returns the Civitas model features, ranked by importance for the given student.
Specifying <STUDENT_ID>
returns the individual feature ranked (IFR) features for the student, ranked by importance. The most important feature has a rank of 1.
Note: This query returns only features for which an IFR value was calculated.
Top and Bottom Percentile Section LMS Features Values
Identifies students' posting frequency, login activity, and academic performance relative to their section peers using z-score percentiles to flag at-risk behaviors. Provides engagement metrics including bottom/top 20% posting frequency and bottom quartile grades.
Student Feature Peer Comparison
This query lets you compare each student’s value for a selected metric against the average of other active students in the same group.
By default: • Metric: GPA (civ_gpa_at) • Grouping: First by student type (civ_career_id: Graduate, Undergraduate, etc.), then by course section (raw_section_id)
Change the metric: You can replace civ_gpa_at in the query with any other available numeric metric.
Examples: • avg_cnt_attendance_sum → Average LMS activity days • avg_cnt_post_sum → Average discussion board posts • avg_relative_avg_cnt_attendance_sum → LMS activity relative to peers • avg_term_grade_percentage_cum → Average grade • avg_relative_avg_section_grade_percentage_cum → Grade relative to section average
To see all available features with numeric values, run:
Change the grouping:
The first grouping level is always student type (civ_career_id). The second level can be changed to: • Section (raw_section_id) • Course (raw_course_id) • Course title (raw_title) • Major code (raw_major_id_mr)
Just comment/uncomment the desired line in the query so that only one ends with AS group_key.
Understanding results:
For each student, you’ll see: • Their selected metric • The chosen grouping • The group average • Difference from group average • Z-score (how many standard deviations away from the group average they are)
If there is no variation in the group, the z-score will be NULL.
Sorting: By default, results are ordered by student ID. To rank by best or worst performance: • Use ORDER BY zscore_from_group DESC → Best first • Use ORDER BY zscore_from_group ASC → Worst first (Remember to comment out the other ORDER BY lines.)