The broad availability of educational data has led to an interest in analyzing useful knowledge to inform policy and practice with regard to education. A data science research methodology is becoming even more important in an educational context. More specifically, this field urgently requires more studies, especially related to outcome measurement and prediction and linking these to specific interventions. Consequently, the purpose of this paper is first to incorporate an appropriate data-analytic thinking framework for pursuing such goals. The well-defined model presented in this work can help ensure the quality of results, contribute to a better understanding of the techniques behind the model, and lead to faster, more reliable, and more manageable knowledge discovery. Second, a case study of social-emotional learning is presented. We hope the issues we have highlighted in this paper help stimulate further research and practice in the use of data science for education.