Introduction

Human ability is composed of cognitive and non-cognitive components, both of which are crucial to an individual's life [1, 2]. The influence of cognitive and non-cognitive abilities has been observed in various aspects of life, including academic performance, educational choices, wages, labor market outcomes, employment decisions, health behaviors, and social integration [3,4,5].

Cognitive and non-cognitive abilities are core components of human capital [1, 2, 6]. Cognitive abilities are the endowments for extracting, storing and utilizing information from the objective world, This encompasses skills such as logical reasoning, abstract thinking and memory [7], while non-cognitive abilities have emerged as a concept distinct from cognitive abilities, aiming to distinguish factors beyond cognitive itself. These encompass qualities such as motivation, authority, work norms, self-control, perseverance, and more [8]. Numerous researches have shown that cognitive and non-cognitive abilities play an important role in academic performance, educational decisions, wages, labor market performance, employment choices, health behaviors and social integration [1, 3,4,5, 8, 9]. Prior research has revealed a considerable disparity between the cognitive abilities of rural and urban students, with urban students scoring significantly higher on word and mathematics tests by 0.75 and 0.54 standard deviations, respectively [6, 10]. Rural students also tend to exhibit lower levels of non-cognitive skills, including depression, self-esteem, and values, with left-behind children experiencing even greater disadvantages [11].

Beginning in 2001, China adopted a policy to eliminate rural learning centers, leading to the consolidation of educational resources and the growth of rural boarding schools. By the end of 2016, 26.08 million rural students were enrolled as compulsory boarders, comprising 27.5% of the total student population. Of these, 16.66 million were boarding students in rural junior high schools, amounting to a boarding rate of 58.6% [12]. Therefore, a comprehensive evaluation of the cognitive and non-cognitive development of boarding students in rural areas has become essential.

Studies have shown that the communal learning environment in boarding schools can increase learning time, optimize teaching resources, and provide more opportunities for boarders to communicate with their teachers and peers [13, 14]. However, boarding students may also be exposed to at-risk peers, which can have negative effects on their development [15, 16]. Boarding can also cause stress for students as they are separated from their familiar surroundings and parents, which can be particularly significant during critical growth stages [17]. Consequently, there is a lack of consensus on the impact of boarding schools on students' cognitive and non-cognitive development.

Extant research on boarding schools has primarily focused on elite schools in developed countries, which have generally been associated with positive academic performance [18]. However, public boarding schools have been set up in many developed countries for marginalized groups, such as the SEED public boarding schools in the US and the Internet Excellence program in France. Quasi-experimental studies have shown that boarding has had a significant positive impact on the academic performance of disadvantaged students in reading and mathematics [19]. Similarly, rural boarding schools in France have positively impacted academic performance, particularly for outstanding boarders, with significant improvements in French and mathematics scores two years after enrollment [14]. Nonetheless, studies in Turkey have reported a negative correlation between boarding and academic performance in Grades 5 to 9 [15]. Boarding also has a significantly negative impact on students' mental health, with boarders displaying more problem behaviors, such as anxiety, depression, hostility, substance abuse, alcohol dependency, and school bullying [20, 21]. Notably, the impact of boarding varies at different stages of development. For instance, Mander et al. (2015) found no significant differences in social, emotional, and psychological well-being between boarders and non-boarders in elementary schools [22]. However, boarders in secondary schools exhibited a higher incidence of emotional difficulties, depression, anxiety, and stress compared to non-boarders. Given the mixed evidence, it is crucial to carefully consider the potential positive and negative impacts of boarding, especially for disadvantaged students attending public boarding schools.

As boarding school enrollment continues to rise in China, researchers have investigated the effects of boarding on students' cognitive and non-cognitive abilities and reported conflicting findings. Qiao and Di (2014) found that boarding significantly improved rural students' performance in mathematics [23], while Mo et al. (2012) reported a significant negative effect of boarding on primary school students' math scores [24]. Similarly, Wang et al. (2016), Li et al. (2018), and Zhu et al. (2019) found that boarding had no significant impact on students' standardized math scores or even reduced their standardized language scores [25,26,27]. Most studies indicate that boarding has a negative impact on students' non-cognitive skills. Rural boarders are more likely to experience bullying, loneliness, and depression in schools and have lower self-esteem, resilience, and emotional intelligence than non-boarders [27,28,29,30]. Taken together, these results suggest that the effects of boarding on students' academic and non-academic outcomes are complex and may vary depending on a range of factors, including the type of boarding school, the students' developmental stage, and their socio-economic background.

This paper aims to contribute to the existing literature on the impact of boarding on rural students' cognitive and non-cognitive abilities in three ways. Firstly, the literature has primarily measured cognitive abilities using subject-specific scores, which may not fully capture the breadth of cognitive abilities. There are numerous studies on cognitive abilities in different disciplines. psychologists commonly differentiate between fluid intelligence, which emphasizes more general capacities such as logical reasoning and abstract thinking, and crystallized intelligence, which is related to the accumulation of concrete knowledge and experience [31, 32]. Academic performance, such as math and reading tests is often used to measure crystallized intelligence [33]. Conversely, fluid intelligence is frequently assessed through quotient tests (IQ tests), exemplified bu tools like the WISC-IV and Raven's Standard Progressive Matrices [34]. To improve accuracy and precision in measuring cognitive abilities, this paper utilizes the Wechsler Intelligence Scale for Children (WISC), Raven's Standard Progressive Matrices, and standardized mathematics scores. Secondly, the literature has relied on self-administered questionnaires to measure non-cognitive abilities, which may lack comprehensiveness and comparability. In contrast, this paper uses the Big Five Personality Inventory to measure non-cognitive abilities accurately [35]. Finally, prior studies have examined the effects of boarding on cognitive or non-cognitive abilities separately, which prevents a comprehensive assessment of the impact of boarding on students' human capital.

This study uses an instrumental variable approach to address endogeneity issues and analyzes data from 160 junior high schools in rural northwest China to illustrate the effects of boarding on students' cognitive and non-cognitive abilities. The results indicate a significant positive effect of boarding on the cognitive abilities of rural junior high school students, particularly in memory and attention, areas associated with fluid intelligence. However, boarding has no significant impact on the non-cognitive abilities of rural students. Furthermore, we provide evidence of heterogeneity in the impact of boarding on cognitive and non-cognitive abilities by gender. We also find a significant positive effect on the cognitive abilities of left-behind children and students from families with better socioeconomic status.

Method

Participants

We conducted our study on first-year rural high school (seventh grade) students in three prefectures from two provinces in northwest China. These provinces were below the national median in terms of GDP, according to the National Bureau of Statistics of China (2015). Hence, the sample of rural students in these provinces can be considered representative of students in low-income areas in rural China.

We constructed our sample in two steps. First, we selected 23 counties from three prefectures, two counties with more developed economic status were excluded, and the remaining were included. Second, we obtained a list of all 496 junior high schools from the counties in Step 1. After excluding non-rural schools and schools with less than 20 students in the seventh grade (to address potential sample attrition or school merger issues), we obtained a final sample containing 5,660 seventh-grade students from 160 schools (see Table 1).

Table 1 Sample distribution

Procedure

The sample was collected in two phases. The first phase was carried out in 2015, which involved administering tests to collect information on basic details of the sample students, mathematics teachers, and schools using questionnaires. Mathematics scores of students were also collected through tests (see Table 2). In the second phase, conducted in 2016, additional tests were administered, which included more Raven's tests, Wechsler tests, the Big Five Personality test, and the Perseverance Scale (see Table 2).

Table 2 Descriptive statistics of the main variables

The data collection involved three steps: (1) recruiting and training researchers, (2) conducting questionnaire tests in schools, and (3) administering cognitive and non-cognitive ability tests. For (1), the project team recruited college students as researchers and provided uniform training and simulation exercises to ensure recruited researchers mastered standardized operations of the study, thus reducing measurement errors caused by inconsistent implementation by researchers. For (2), researchers organized students to take standardized math tests and questionnaires, which were developed by the project team in collaboration with the best secondary school teachers and calibrated to match the academic level appropriate for seventh-grade rural students. All sample schools used standardized math tests with identical questions assigned by the project team and proctored by researchers on-site. Researchers also conducted one-on-one questionnaire interviews with principals and mathematics teachers. In (3), cognitive ability tests included Raven's test and Wechsler's test. Raven's test was administered in a group and took approximately 45 min. The Wechsler test needed to be conducted one-on-one and required highly trained personnel, participants therefore received training in professional institutions. Additionally, the project team organized several practical exercises in non-sample schools to ensure the accuracy and consistency of the Wechsler test. Given the significant testing and time costs of the Wechsler test, three students from each sample class were randomly selected to take the Wechsler test individually. Students are selected based on their mathematics scores in the first research sample class, which were rank ordered into three groups: high, medium, and low; one student from each group was randomly selected for the Wechsler's test. The rest of the class took the Raven's test. The non-cognitive skills component primarily consisted of the Big Five personality test and the Perseverance Scale test, both of which were included in the student questionnaire.

Cognitive ability

The objective of this research is to investigate students' cognitive abilities, measured using three tests: the Wechsler Intelligence Scale for Children-Fourth Edition (WISC-IV), Raven's Standard Progressive Matrices (Raven's IQ test), and a mathematics test. Cattell's (1987) suggested that cognitive abilities are divisible into two categories: crystallized intelligence and fluid intelligence [36]. The former pertains to skills attained through experience and knowledge, such as vocabulary, calculation, and verbal comprehension, whereas the latter refers to neural development, including perception, memory, and reasoning ability.

The WISC-IV is a tool for assessing intelligence in children aged 6 to 16 and comprises four indices: verbal comprehension, perceptual reasoning, working memory, and processing speed, along with the total IQ score [37]. The Chinese version of the WISC-IV short-form scale was employed in this research, which contains four subtests representing the four indices [38].Footnote 1 The four subtests utilized for estimating the WISC IQ score were similarities, digit span, coding, and matrix reasoning. Similarities is designed to capture crystallized intelligence, while digit span, coding, and matrix reasoning are intended to measure fluid intelligence [39]. The aggregated WISC IQ score was used in the regression analysis.

The Raven's IQ test is a nonverbal test of intelligence that consists of pictorial questions related to spatial reasoning and pattern matching, which are designed to assess observational and thinking ability [40]. The test is culture-, language-, and age-neutral and consists of 60 questions that can be converted into IQ scores based on normative patterns. It is defined to capture fluid intelligence and was used for robustness testing in this study [31].Footnote 2

The mathematics test, administered to all students in the sample, was developed by experienced secondary school mathematics teachers based on the standard high school syllabus. The test captures crystallized intelligence and was used for robustness testing in this study [33]. Several pre-studies of the questions were carried out by the research team to assess their suitability.

Non-cognitive ability

Non-cognitive abilities represent a fundamental component of human capital and can be examined through various skills and traits, including self-control, self-esteem, self-confidence, due diligence, perseverance, self-awareness, and communication skills [45]. We employed the Big Five personality traits and the Short Grit Scales as measures of non-cognitive abilities.

DeYoung's Big Five personality traits consist of neuroticism, agreeableness, conscientiousness, extraversion, and openness, which capture diverse aspects of personality. Neuroticism assesses emotional instability and sensitivity, such as anxiety, hostility, depression, self-consciousness, impulsivity, and vulnerability. Extraversion captures interpersonal skills, positive affect, and energy levels. Openness refers to the imagination and intellectual curiosity as reflected in personal fantasy, aesthetics, feelings, actions, ideas, and values. Agreeableness evaluates how a person interacts with others through levels of trust, frankness, altruism, submissiveness, humility, and gentleness. Finally, conscientiousness assesses competence, order responsibility, effortful achievement, self-discipline, and thoughtfulness [46]. The Big Five personality traits have been widely studied and are recognized as being stable across different languages, disciplines, and raters [47, 48].

The Short Grit Scale, developed by Duckworth et al. (2007), measures perseverance and passion for long-term goals [49]. This scale consists of eight questions that evaluate student attitudes and behaviors towards long-term goals, such as the tendency to prioritize new ideas over existing plans [50]. The Short Grit Scale has demonstrated strong internal consistency, test–retest stability, and high predictive validity [51]. Grit is considered a facet of Big Five conscientiousness and has gained recent attention in the literature on human achievement. In this study, we utilized it for robustness testing.

Model design

Consider a statistical model that links a student's cognitive and non-cognitive abilities, boarding status, and other determinants of ability as represented by:

$${Y}_{jis}=\alpha +{\beta }_{1}Boardin{g}_{jis}+{\beta }_{2}{W}_{jis}+{\mu }_{j}+{\varepsilon }_{jis}$$
(1)

where \({Y}_{jis}\) denotes the cognitive and non-cognitive abilities of student i in school s in county j; \(Boardin{g}_{jis}\) is an indicator of the student's boarding status (1 if boarding, 0 otherwise), and \({W}_{jis}\) is a set of exogenous covariates that includes student (e.g., age and gender), family (e.g., parental education), and school (e.g., teacher qualifications and school facilities) characteristics; \({\mu }_{j}\) is county fixed effect; and the error term \({\varepsilon }_{jis}\) captures the influence of all unobserved factors.

Equation (1) may be subject to endogeneity issues for two main reasons. First, reverse causality may arise where students with lower cognitive abilities or academic performance could be more likely to choose boarding [14]. This concern is particularly true in cases such as the French excellent boarding school program, which is designed to provide elite education for disadvantaged groups. In contrast, boarding schools in rural China aim to integrate educational resources and are more likely to be chosen because of the distance between the student's home and school [26, 27, 52]. Therefore, reverse causality may not be a problem in this study. Second, omitted variables may also pose a problem, given that factors that affect students' cognitive and non-cognitive abilities may exist at multiple levels, and crucial indicators such as genetic factors and parental emotional involvement may be difficult to measure [27, 53,54,55].

To address these problems, we use the standard instrumental variables (IV) approach to identify an exogenous source of variation in one's boarding status. The proportion of boarders of all students in a particular school is used as an instrumental variable for boarding. This strategy is based on the assumption that the proportion of boarders is a strong predictor of one's boarding status, because a higher proportion of boarders within a school indicates a higher likelihood for students to become boarders in that school. We employ a two-stage least squares (2SLS) framework to estimate Eq. (1) and the following first-stage equation.

The first-stage equation:

$$Boardin{g}_{jis}={\mu }_{0}+{\mu }_{1}sc{h}_{boardingjis}+{\mu }_{2}{W}_{jis}+{\mu }_{j}+{\varepsilon }_{jis}$$
(2)

The second stage equation:

$${Y}_{jis}=\alpha +{\beta }_{1}Boardin{g}_{jis}+{\beta }_{2}{W}_{jis}+{\mu }_{j}+{\varepsilon }_{jis}$$
(1)

where \(Boardin{g}_{jis}\) is the proportion of boarders. The definitions of other variables are the same as in Eq. (1).

Result

Distribution of cognitive abilities and non-cognitive abilities

Figure 1 shows the distribution of WISC-IV scores in our sample. The density distribution of WISC-IV scores is right-skewed for both boarding and non-boarding students compared to the norm, indicating a relatively high proportion of students with cognitive delays in our sample. Boarding students exhibit a less right-skewed distribution of WISC-IV scores compared to non-boarding students, suggesting that boarding students have higher WISC-IV scores on average. Fig. 2 shows the density distribution of Raven's IQ scores for the sample students. The estimated IQ scores on Raven's test for both boarding and non-boarding samples are not significantly different from the norm. Moreover, there is no significant difference between the Raven's IQ scores of boarding and non-boarding students. Finally, Fig. 3 illustrates the density distribution of standardized math scores for the sample students, suggesting that there is no significant difference between the boarding and non-boarding students.

Fig. 1
figure 1

Distribution of WISC IQ scores for sample students and a healthy population. The WISC IQ scores density distribution in the healthy population is a normal distribution with a mean of 100 and a standard deviation of 15

Fig. 2
figure 2

Distribution of Raven’s IQ scores for sample students and a healthy population. The Raven’s IQ scores density distribution in the healthy population is a normal distribution with a mean of 100 and a standard deviation of 15

Fig. 3
figure 3

Distribution of standardized math scores for sample students. Math scores are standardized

Table 3 presents the differences in cognitive and non-cognitive abilities between boarding and non-boarding students. The results indicate that boarders' WISC-IV scores were 2.45 points higher than non-boarders, significant at the 5% level, and boarders' fluid intelligence scores were 0.363 points higher than non-boarder, similarly significant at the 5% level. Boarders also scored higher on the matrix reasoning scale by 0.82 points at the 1% significance level. Additionally, boarders' standardized math scores were statistically significantly higher than non-boarders. In terms of non-cognitive skills, boarders scored higher in extraversion by 0.042, but lower in agreeableness by 0.042 compared to non-boarders.

Table 3 Descriptive analysis of cognitive and non-cognitive abilities: comparisons between different types of students

Table 4 verifies the representativeness of the WISC-IV-tested students in the sample. We examine the differences in student characteristics between those who took the test and those who did not. The results indicate no significant differences in individual characteristics, family characteristics, and baseline math scores between the two groups.

Table 4 Descriptive analysis of students who took the WISC-IV test: comparisons between different Characteristics of students

Impact of boarding on cognitive abilities

Table 5 presents an analysis of the impact of boarding on cognitive abilities among rural students, specifically focusing on WISC IQ scores, fluid intelligence, and crystal intelligence. Using ordinary least squares (OLS) estimates in columns 1, 3, and 5, the results show that boarding does not have a significant effect on students' cognitive abilities. To further examine the causal relationship between boarding and cognitive abilities, two-stage least squares (2SLS) estimates are presented in columns 2, 4, and 6, and the findings indicate that boarding has no significant impact on WISC IQ scores, fluid intelligence, and crystal intelligence. The first stage regression has a high F-statistic of 41.284, indicating the exclusion of weak instrumental variables. To better understand how boarding affects students' cognitive abilities, we also estimated the impacts of boarding on the four subdimensions of WISC IQ scores, which are similarities, digit span, coding, and matrix reasoning. The results presented in Table 6. The 2SLS estimates for boarding on students’ scores in digit span has a parameter estimate of 2.024, significant at the 5% level. Since scores in digit span is a test of attention and memory, the result highlights the positive impact of boarding on students' performance in this particular cognitive dimension.

Table 5 Impact of boarding on students' cognitive abilities
Table 6 Impact of boarding on subdimensions of cognitive abilities

Impact of boarding on students' non-cognitive abilities

Table 7 presents the effects of boarding on the personality traits of rural students, encompassing extraversion, agreeableness, dutifulness, neuroticism, and openness. The OLS results in columns (1), (3), (5), (7), and (9) suggest that while there is a positive relationship between boarding and the extraversion of rural students, the IV results indicate that boarding does not have a statistically significant effect on any of the five personality traits examined. Therefore, we conclude that boarding does not have any significant effects on the non-cognitive abilities of rural students.

Table 7 Impact of boarding on students' non-cognitive abilities

Robustness test

To enhance the robustness of the research findings, we conducted additional regression analyses. First, we added the bootstrap method to the original instrumental variables method to re-estimate the impact of boarding on students' cognitive and non-cognitive abilities. The bootstrap method involves treating the observed sample as the entire population, and repeatedly resampling with replacement from the original sample to estimate the sampling distribution. This approach can provide an estimate of the distribution without introducing bias. In this paper, we conducted 1000 bootstrap samples and then used the instrumental variables method for estimation, which can provide more robust standard errors. Tables 8 and 9 show the results, which indicate that boarding still has a significant positive effect at the 10% level on students' scores in digit span and no significant effect on students' non-cognitive abilities, which is consistent with the results above.

Table 8 Robustness test I: bootstrap sampling—cognitive abilities
Table 9 Robustness test I: bootstrap sampling-non-cognitive abilities

Second, we performed robustness tests using Raven's IQ, standardized math, and grit scores as additional measures of cognitive and non-cognitive abilities. Raven's IQ and standardized math scores are measures of fluid and crystal intelligence, respectively. The results in Table 10 suggest that boarding does not have a significant effect on students' Raven's IQ and standardized math scores, which are consistent with previous findings. Grit is closely related to conscientiousness in the Big Five personality traits, and although the two are not identical, they share strong similarities such as diligence and perseverance [56]. It has also been shown that grit is a more refined measure of conscientiousness [57, 58]. However, columns (5) and (6) of Table 10 show that boarding does not have a significant effect on students' grit scores, which are consistent with the previous results.

Table 10 Robustness test II: impact of boarding on students' cognitive and non-cognitive abilities

Heterogeneity analysis

In addition to analyzing the effects of boarding, we investigate the heterogeneity of these effects along three dimensions: gender, whether the student is a left-behind child, and family asset status. Family asset status is defined by ranking students' family asset indices from smallest to largest, and students in the top 25% of the sample are classified as having bad family conditions, with a dummy variable indicating whether a student's family conditions are bad. Table 11 presents the results of the heterogeneity analysis for cognitive abilities. The estimates in Panels A and B show that boarding has a significant positive effect on boys' WISC IQ scores, particularly in fluid intelligence, as evidenced by improvements in digit span and matrix reasoning. These findings suggest that boarding enhances boys' memory, attention, and reasoning abilities. Panels C and D indicate that boarding also has a significant positive impact on left-behind children's WISC IQ scores, again largely reflected in fluid intelligence. Boarding increases the digit span score (memory and attention) of left-behind children by 2.952 points (p < 0.05). However, the coding score for non-left-behind children is negatively affected, indicating that boarding reduces their transcription speed, accuracy, general learning ability, and anti-distraction ability. Panels E and F demonstrate that boarding has a significant positive effect at the 5% level on the digit span scores (memory and attention) of students with good family conditions, while there is no significant effect on students' cognitive abilities from low-income families.

Table 11 Results of the heterogeneity analysis of the impact of boarding on students' cognitive abilities

The heterogeneity analysis of non-cognitive abilities is presented in Table 12. Panels A and B show gender differences in the effect of boarding on students' non-cognitive abilities. Specifically, there is a significant positive effect of boarding on girls' conscientiousness at the 10% statistical level, indicating that boarding enhances girls' abilities in areas such as responsibility, workability, and self-control. However, no significant differences were found in the effect of boarding on non-cognitive abilities in other aspects. These findings suggest that boarding schools have varying effects on different dimensions of students' cognitive and non-cognitive abilities, highlighting the importance of considering heterogeneity in understanding the overall impact of boarding school education.

Table 12 Results of the heterogeneity analysis of the effect of boarding on students' non-cognitive abilities

Conclusion and discussion

This study examines the impact of boarding on the cognitive and non-cognitive abilities of 5,660 junior high school students from 160 schools in rural northwest China using an instrumental variable (IV) approach. Our findings suggest that boarding has a significant positive effect on the digit span scores of junior high school students, which is a key component of the Working Memory Index in WISC, and suggests that boarding improves students’ memory and attention. However, we did not find any significant effects on other aspects of cognitive ability, such as logical thinking, reasoning, and transcription speed and accuracy. Additionally, we found no effects on non-cognitive abilities. To ensure the robustness of our findings, we conducted bootstrap and alternative variable tests, which supported our main results.

We used comprehensive indicators of cognitive abilities, namely crystal and fluid intelligence, to investigate the impact of boarding on rural students' cognitive abilities. Our analysis shows that boarding has a significant impact only on the ability of students to perform digit-span tasks, which is an important component of the Working Memory Index in the WISC. This finding suggests that boarding can positively affect students' memory and attention skills. One possible explanation for this result is that intensive and continuous learning or training can enhance an individual's cognitive abilities [59,60,61]. Moreover, boarders have a more collaborative learning and living environment in comparison to commuters, and they spend more time on general studies and homework [29]. Thus, boarding can significantly improve students' cognitive abilities. Furthermore, previous research has shown that the breadth of children's working memory increases linearly between the ages of 4 and 15 [62]. As boarders spend more time at school than commuters, they may have more opportunities to exercise their cognitive abilities, particularly in the area of attention and memory. Therefore, the positive effect of boarding on their cognitive abilities is likely to be reflected in their performance on digit span tasks. Most previous studies on the relationship between boarding and students' cognitive ability have often used academic performance (such as grades in math, language, and reading) as a proxy variable for cognitive ability. The conclusions drawn from these studies have been mixed. For instance, some studies suggest a positive effect of boarding on students' math performance in elementary school [19, 23], while others demonstrate a significant negative influence on reading scores [26, 28]. On the other hand, boarding has been linked to a positive effect on math and language scores among junior high school students [29, 63]. Nonetheless, academic performance merely measures a certain dimension of students' cognitive ability, often reflecting crystallized intelligence and not offering a comprehensive evaluation of cognitive ability. From this perspective, this study employs the Wechsler test to more precisely gauge the impact of boarding on students' cognitive ability. In the existing literature, China Education Tracking Survey (CEPS) data is the only source that gauged students' cognitive ability through a unified scale (but not the Wechsler and Raven tests utilized in this study). Their findings indicated that boarding does not significantly impact students' cognitive abilities [63], which broadly aligns with the results of our study.

Moreover, regarding boarding and noncognitive ability, the current literature has primarily focused on mental health indicators as measures of noncognitive ability (e.g., depression, bullying, etc.). For instance, studies have pointed to potential psychological risks associated with boarding for students [27, 28, 64,65,66]. However, the Big Five personality traits measurement is an internationally recognized and widely employed tool for non-cognitive abilities. Notably, there is a scarcity of literature investigates the impact of boarding on students' non-cognitive skills within the framework of these five dimensions.

We conducted further analysis on the heterogeneity of the effects of boarding on the cognitive and non-cognitive abilities of rural junior high school students by gender, stay-at-home status, and family conditions. Our results indicate that the effect of boarding on the cognitive abilities of boys is greater than that of girls, particularly in fluid intelligence, as measured by digit span and matrix reasoning scales that show improved memory, attention, and reasoning abilities. This could be due to differences in time management skills between boys and girls, with boys benefitting from the external discipline and communal learning atmosphere in boarding schools [67]. For left-behind students, boarding has a greater impact on their cognitive abilities, particularly in the areas of memory and attention, as they lack parental engagement and receive more support from teachers [13]. Additionally, boarding can have a positive impact on the cognitive abilities of students from better-off families due to improved nutritional intake in school, which is associated with better cognitive development [68]. Existing research often uses academic performance as a proxy for cognitive abilities, which may not accurately capture the full range of cognitive skills. Furthermore, the positive effects of boarding on non-cognitive abilities were not observed in our study, suggesting the need for further investigation into the impact of boarding on non-cognitive development.

Our analysis of the heterogeneous effects of boarding on students' cognitive abilities also extends to their non-cognitive abilities. We find that boarding has a more significant impact on girls' conscientiousness of the Big Five personality traits, which is consistent with previous research on gender differences in conscientiousness [69]. This may be attributed to female personality traits and the role of gender as a moderating variable affecting individual commitment [70]. Social role theory also suggests that individuals of different genders develop different senses of group identity, causing them to behave differently in different social situations [71]. Therefore, greater commitment by girls to group characteristics may explain why they are more likely to be influenced by the communal learning atmosphere and external discipline that boarding schools provide. Interestingly, we did not find a significant effect of boarding on non-cognitive abilities among left-behind children or those from different family backgrounds. This finding supports our main estimation results and suggests that boarding may not have a substantial impact on the non-cognitive abilities of rural middle school students. Furthermore, we ruled out the possibility of positive and negative effects of boarding in different subsamples cancelling each other out, which strengthens this conclusion.

In conclusion, our study provides evidence that boarding schools is not detrimental to the development of new human capital, including cognitive and non-cognitive abilities, among rural junior high school students. Moreover, boarding positively affects some dimensions of students' cognitive abilities, particularly in the areas of memory and attention, and has a greater effect on certain subgroups such as boys, left-behind children, and students from better-off families. The growing prevalence of boarding schools in rural areas underscores the need to explore ways to further enhance students' cognitive skills and foster the development of non-cognitive or socio-emotional abilities in their daily boarding life. This issue deserves ongoing attention and efforts from educators and policymakers.

We do acknowledge one limitation of this study. While our analysis and findings indicate that boarding has not significantly impacted the cognitive and non-cognitive abilities of rural junior high school students, it remains possible that potential adverse effects are still present. It’s worth noting that the cognitive and non-cognitive skills evaluated in this paper using measurement scales may not fully encompass the nuances of various students’ behaviors tied to boarding. For instance, aspects like the dynamics between boarders and roommates, as well as the prolonged separation of boarders from parents, could potentially exert negative influences on their non-cognitive abilities, including interpersonal skills and emotional well-being [20, 21, 63, 72]. This points to both the limitation of our current study and the necessity for further research.