Introduction

According to experts, one of the most important corporate governance (CG) systems is the board of directors. In order to protect the interests of shareholders, it is responsible for the direction and management of the organisation's affairs, as well as the monitoring, supervision and advice of senior management [4, 9]. More specifically, the board has delegated numerous roles and responsibilities such as developing and selecting the best strategy for the organisation and monitoring its implementation [8], guiding and monitoring the performance of the management; hiring and firing underperforming managers; linking the organisation to the internal and external environmental conditions; accountable for whether managers follow formal procedures and policies; hiring and compensating senior managers; designing and overseeing internal controls, communicating critical information to managers, and enhancing corporate legitimacy and fairness [17, 57].

For example, in the Sarbanes–Oxley Act and the most recent stock exchange regulations on CG, it was expected that boards with a higher proportion of female members would be less prone to accounting fraud and misconduct by senior managers [8]. As a result of ineffective decision making and monitoring, lack of accountability to societal stakeholders, ineffective direction and control functions, increased information asymmetry, and a general decline in public trust in the firm, other literature has instead suggested that the board may be responsible for corporate failures and scandals around the world [11, 14, 16, 17]. The board of directors plays a crucial role in CG, especially in addressing the agency problems of shareholders and managers, according to the seminal work of Jensesn and Meckling (1976). This role encompasses policies, rules, regulations, processes, and people to satisfy stakeholder needs and to help guide and control management activities with ethical business practices, integrity, transparency, and objectivity. Gender diversity is one of the most important CG mechanisms that can improve the alignment between the interests of shareholders and managers and mitigate the inherent agency problems [27, 78]. The structure of CG is made up of many internal and external mechanisms (e.g. [27, 24, 65, 75]).

Earnings management (EM), also known as income smoothing, window dressing, accounting magic, general EM, true EM, and accrual EM, has been defined and discussed in various ways. Until the beginning of the 1980s, the most used term was “income smoothing”. Since then, the term earnings management has replaced income smoothing [89]. There is no precise or unambiguous definition of EM. Schipper [89] was one of the first to identify the practice of EM as deliberately interfering with the external financial reporting process to achieve a particular private benefit. Healy and Wahlen [59, p. 6] defined EM more broadly as: “the setting in which management judgmentally adjust the financial reports and the structure of the transactions. This could be done with the purpose of misleading stakeholders about the organization performance or influencing contractual outcomes that are based on the reported accounting values.

Because of the nature of accrual accounting, managers have a great deal of latitude in calculating the actual income generated by the organization in any given period. As a result, they have a great deal of control over when actual expenses (such as those for advertising, maintenance, or R&D) are incurred. In addition, it may allow firms to change the timing of revenue and expense recognition through credit sales or to delay the recognition of losses by delaying the establishment of loss reserves [95]. According to Dechow and Dichev [40], EM is the link between cash flows and accruals. Therefore, management has the power to recognize the right to restrict information or use it to control profitability. According to Boakye et al. [32], EM occurs when managers take advantage of opportunities to make accounting decisions that change reported earnings based on estimates and judgements.

Despite this, for many decades women faced professional and social challenges that prevented them from advancing to top management positions. In recent years, board diversity has been seen as one of the most important and integral components of CG practices. Previous research by Adams and Ferreira [6], Gul, Hutchinson, and Lai [54], and Gull et al. [56] demonstrated the importance of promoting women to higher oversight and regulatory positions. They found that gender-diverse boards promote greater monitoring efforts and managerial accountability to eliminate agency and control problems. Compared to male directors, female directors are more interested in attending board meetings and focusing on ethical standards and risk-averse projects.

They are motivated more by moral issues than by self-achievement. Women make more efforts to complement male directors rather than replace them, to be able to promote open discussions, bring new dynamics to board deliberations, and create a good and healthy environment for the organisation to support monitoring and oversight functions and promote financial reporting quality [92]. As a result, it is predicted that women are less likely to engage in earnings management, especially when opportunistic manipulation involves the risk of losing reputation, litigation risk, current and new investors, and jobs. As a result, female directors are less willing to engage in unethical activities than their male counterparts [56]. As a result, many countries require quotas for female directors on boards, suggesting that a certain number of women are represented on boards to break the glass ceiling [44]. Norway was the first country to require companies to have a defined quota of female directors on the board, set at 40% in 2003. Following Norway's example, several developed and developing countries introduced quotas for female directors on company boards. However, not all countries have been successful in requiring companies to implement a predetermined quota of female directors. As a result, the importance of gender equality has become central to Egypt's economic and political agenda. Egypt's legislative and institutional systems have increased their interest in strengthening the role of women's rights and representation on corporate boards.

The study focuses on Egypt for several reasons. First, Egypt can be seen as representative of the Middle East and Arab countries. As an emerging market, Egypt is important to the global economy due to its favourable investment climate and expected economic growth [27, 86, 87]. Second, the Egyptian CG code was first implemented by the Ministry of Investment and International Cooperation in 2005, based on CG principles endorsed by the Organisation for Economic Cooperation and Development (OECD). However, the Egyptian financial market continues to suffer from poor financial reporting and transparency. Nevertheless, the use of CG in Egypt as a model for emerging markets differs greatly from its use in rich countries.

In Egypt, CG enforcement is neither mandatory nor legally binding; rather, it aims to inspire and motivate companies to manage and control their systems in line with international best practices, demonstrating that sound management can run companies in the best interests of stakeholders [27, 25, 43]. Third, as an emerging stock exchange, Egypt lacks alternative sources of information other than public financial statements, such as earnings forecasts, media releases, industry financial studies, and management conference calls. As a result, financial statements are the main source of information available to both internal and external users [10]. As a result, the quality of financial reporting in developing countries, especially in the Middle East and North Africa (MENA) region, is more important than in developed countries in terms of reducing information asymmetry and improving decision making [7, 88].

Particularly, women in Egypt face numerous institutional, legal, and social barriers to leadership. The International Finance Corporation (IFC) ranked Egypt 134th out of 153 countries in its global gender gap index. Egypt's constitution does not provide equal opportunities for men and women [44]. As a result, regulatory bodies have implemented several changes and regulations, including the issuance of laws, CG codes, and regulations to improve the integrity of financial reporting [43]. As a result, in 2016, the Egyptian Code of Governance recommended non-discrimination against women. The Financial Regulatory Authority (FRA) issued Decree 123/2019 in 2019, requiring the appointment of at least one female board member. After two years, FRA issued revised Decree 109/2021 amending Decree 123/2019 mandating the appointment of at least one female board member. After two years, the FRA published new Decree 109/2021 to amend Decree 123/2019, which mandate the appointment of at least 25% or at least two women on the board with one year.

Our paper adds to the current literature in several ways. First, there is a dearth of empirical information on the impact of female roles on the quality of financial reporting, particularly in emerging market contexts. As a result, this study provides further information on the impact of gender diversity on the practice of pay manipulation in Egypt. Second, by using advanced research design and data, this paper extends previous research on the impact of CG characteristics on accrual and real-based EM. There has been little research on the impact of gender diversity on accrual EM. As a result, this study proposes more data on the extent to which internal CG mechanisms in Egypt moderate real-based EM practices. The study aims to support the policy agendas of many key organizations, including the World Bank, the IMF, and the Capital Market Authority (CMA), to convince the government to promote CG standards as part of a broader CG reform. Third, we examine real EM efforts to see if EM techniques are influenced by CG mechanisms, an area where research is limited, especially for Egyptian organizations. Recently, several studies have focused exclusively on the practice of discretionary accruals [38]. Nevertheless, there is extensive evidence of real-based earnings management (REM) practices in most organizations. However, most of the academic research has focused on accrual-based earnings management (AEM). Several research has shown that the switching of organizations between AEM and REM is overlooked by investors, prompting authorities to pay close attention to certain EM practices [45, 47]. As a result, this study focuses on how gender diversity reduces both types of manipulation. Fourth, the relationship between gender diversity and EM practices has long been a topic that few studies have addressed. Indeed, previous research on this topic cannot be generalized and may not be internationally applicable due to differences in legal and economic systems, cultural norms, capital market size, and the efficiency of CG mechanisms. This study is one of the few to examine the relationship between the presence of women on boards and EM practices. Fifth, to the best of my knowledge, this study is the first to identify earnings manipulation practices in the Egyptian context using several real-world based EM models: six models developed by Roychowdhury [84] to be confirmed by the validity, reliability, and robustness of the study findings. Sixth, the analysis applied more advanced techniques to efficiently correct for various econometric difficulties found in previous empirical literature (endogeneity, individual and time-invariant heterogeneity, and autocorrelation, etc.). In this case, the study employs a system GMM to address these issues, allowing it to provide a consistent and robust result. Most previous experiments in CG and EM have used pooled regression analysis and static panel data analysis (e.g. [60, 64]). These techniques are considered inappropriate due to the dynamic endogeneity and unobserved firm heterogeneity that emerges in the relationship between CG and EM [26].

The paper is structured as follows. The first section deals with the context of our research (introduction), followed by a presentation of the literature review. The third section is devoted to the methodology of our research. The fourth section deals with the analysis and discussion of the results. The conclusion, the different stages and the results of our research are presented in the fifth and final section.

Gender Diversity and Earnings Management : Theoretical Framework

The relationship between board gender diversity and earnings management can be apprehended since several theories, namely agency, resource dependency, stakeholder, and institutional theories. Under agency theory, the importance of fiduciary duty is to address the problem of misalignment of interests between principals and agents due to conflicts between managers' and shareholders' interests [49, 61]. As a result, this perspective argues that gender diversity among directors in the boardroom is crucial to enhance the board's independence and support its function of monitoring and controlling management, thereby limiting conflicts of interest [69]. According to agency theory, diversity provides the organisation with fresh ideas, qualifications, knowledge, expertise, and information, which increases the organisation's ability to deal with the complexities and difficulties that arise in the external market environment. These diverse qualifications, histories, and perspectives allow women to contribute unique and valuable ideas and methods during board meetings, which increases the effectiveness of the decision-making process [52].

According to resource dependency theory, greater gender diversity can lead to greater access to links, channels of communication, and networks of different resources. This protects vital resources for companies such as information, skills, experience, prestige, diverse cultural backgrounds, legitimacy, gender diversity, and business contacts. Most organisations like to assign tasks to female directors to increase the legitimacy of the company by showing that the company promotes gender equality in the external environment [81]. Gender diversity supports board members to adhere and respond quickly to issues of uncertainty and to control issues of limited resources for their firms [69]. Diversity enhances the recruitment process of highly qualified candidates from inside or outside the organisation to create a healthy competitive atmosphere in internal labour markets [92]. Therefore, board diversity helps organisations to maintain their independence and sustainability of relevant resources and increase their competitive advantage [6, 56, 72].

Stakeholder theory holds that organisations are a part of the social system. It is assumed that gender diversity can facilitate interdependence among stakeholders like as consumers, employees, the local community, and suppliers. Gender diversity enhances board members' ability to examine and comprehend societal concerns, hence enhancing their sense of social responsibility towards the society [51]. This reflects a positive image of the firm and strengthens social capital and cohesion, which promotes stakeholder wealth and maximises the effectiveness of representation for various stakeholders [69]. Organisations become more capable of building their reputation and commercial potential because of their extensive network of stakeholders [52, 69, 92]. Furthermore, the firm can raise its capability to increase its market share and to penetrate the market more easily and give the opportunity for their board to sponsor their functional ability, engage in complex problem-solving situations, and take strategic decisions in favour of their stakeholders [2, 6].

However, institutional theory shows that gender diversity on boards is not always and, in all circumstances, beneficial for firms. The importance of gender diversity varies depending on the quality of corporate governance, applicable accounting standards, level of investor protection, quality of government, legal system, and culture. For example, in companies with robust governance structures, gender diversity on the board is seen as detrimental due to excessive oversight. On the other hand, gender diversity can be beneficial and urgent for firm success, especially in poorly controlled firms [56]. They emphasised that gender diversity provides the organisation with skills, knowledge, information, education, and expertise that help its members cope with changing environmental, social, and institutional demands. As a result, complexity, uncertainty, corruption, and ambiguity are reduced, ultimately improving business performance. According to UK studies, the results of the relationship between diversity, independence, and earnings quality cannot be generalised across countries due to changing economic environments, governance quality, capital market size, cultural differences, investor protection, and different regulatory regimes [79].

In summary, although agency, resource dependence, and stakeholder theories support board diversity, there are arguments against board diversity because it may have a negative impact on earnings quality. For example, more internal diversity may lead to more perspectives, debates, conversations, and critical assessments within the organisation. Several studies have shown that gender diversity in the boardroom may lead to less cooperation and more disagreements, which may reduce the quality of decision making (e.g. [2, 94]). In addition, the effectiveness of the board may be compromised if board members do not act as an effective operational team, which may slow down decision making and limit business success. Gender diversity can have a negative impact on group cohesion and boardroom cooperation, making decision-making slow and ineffective, particularly in highly competitive markets. This limits the board's ability to respond quickly to market shocks, reactions, and demands [6, 56, 57, 69, 74].

Empirical Literature Review and Hypothesis Development

Despite the proliferation of studies, there are still much debate and inconclusive results on the relationship between gender diversity and EM practices, which are arguably the most important components of CG. One stream of researchers found that board characteristics have positive and negative effects on financial reporting quality [9]. On the contrary, another stream of researchers found that BOD characteristics and financial reporting quality are not related [29, 93]. To reconcile these inconsistencies, this study aims to analyse the relationship between gender diversity and financial reporting quality from theoretical and empirical perspectives.

Thus, there is a strong motivation to include female directors in the boardroom to communicate with female workers and female customers in the society due to their expertise and professionalism [55]. For example, Nguyen and Faff [74], using 832 observations of listed Australian companies, found that diversity enables better understanding of the market, more effective problem solving, support for creativity and innovation practices, development of more effective global relationships, and corporate leadership. In the USA, Adams and Ferreira [6] found a positive association between female directors and performance in the presence of weak shareholder rights. However, board diversity may have a negative impact on firm value due to excessive monitoring because of strong shareholder rights.

Al-Shaer and Zaman [13] in the UK FTSE35 in 2012 found that independent women directors have a greater impact on the quality of sustainability reporting than female directors and are effective in reducing agency costs. In a similar context, Lara et al. [71] in the UK found a positive and significant relationship between the percentage of female directors and accounting quality in the case of discrimination. However, the presence of a female director would not affect monitoring functions and EM if women and men behave similarly in high-profile positions in the absence of discrimination.

Recently, Gull et al. [56] investigated the association between female directors and earnings manipulation and whether this relationship is moderated by the role of statutory and demographic attributes using 394 French listed firms. Initial results revealed a negative association between female directors and EMs. However, the results showed a positive association when the statutory and demographic attributes were considered in the regression models. Therefore, the researchers concluded that specific (statutory and demographic) attributes such as (AC membership and business expertise) are important characteristics that should be considered when appointing female directors. This may enhance their effectiveness in monitoring and supervising functions, thereby mitigating opportunistic management behaviour. In line with these findings, Zalata et al. [97] (Zalata et al. 2022) suggested that female directors should be appointed and involved in monitoring functions rather than only in an advisory role on the board to develop the integrity and reliability of the financial reporting process. Their study recommended the importance and necessity of including women in the board structure to make good contributions to shareholders and to play an effective role in curbing managerial opportunism.

On the other hand, in the UK, Arun et al. [21] found that firms with more female and independent female directors are more likely to apply conservative financial reporting rules and standards. In other words, women are more likely to engage in revenue decreasing rather than revenue increasing EMs. These findings are consistent with the study of Gavious et al. [52], who found that female and independent directors on the board are less likely to engage in income increasing EM manipulations due to their conservatism. However, in France, Lakhal et al. [70] found that the presence of at least three women on the board plays an important role in monitoring and supervising management behaviour and effectively eliminating opportunistic EMs. Political bodies try to equalize the number of women and men on the board, hopefully to eliminate the practice of EM. However, the woman on the board should have the qualifications, experience, background, and expertise to effectively eliminate EMs. Imposing rules and regulations regarding the quota of women on the board may be detrimental to the organization if they consider the qualifications and financial literacy of the women selected. For example, some countries such as Norway, Iceland, and Spain, which have imposed a quota of 40% female directors on the board, have reduced the value of their companies by enforcing the law to hire younger and less experienced women as directors.

Chen and Gavious [37] in Israel, while investigating the relationship between diversity and EMs, determined the need to consider the impact of the female director's financial literacy. The results are inconclusive, in the first stage there is a negative relationship between the female director and EM in the pre-IFRS period, while the opposite result is found for the post-IFRS period. Specifically, both measures of EM are significantly larger when female representation is higher. In the second stage, when the financial literacy of the woman is considered in the investigation, the results show that the presence of female directors is beneficial in other aspects related to the characteristics of the woman in the company. Explicitly, it is necessary for female directors to be financially literate in order to contribute effectively to monitoring the opportunistic behaviour of EM either before or after IFRS periods.

Previous literature in developing countries has found conflicting results on the relationship between board diversity and firm performance. This may be due to different time frames, lack of control variables, non-harmonized performance measures, the endogeneity problem between gender diversity and performance, and different institutional contexts such as regulatory and legislative [35, 83].

Several works in the literature are consistent with RDT, which suggests that board diversity brings important and critical information to the manager to help them make better decisions. The female brings more opinions and viewpoints to the discussions due to her different socialization and exposure to different experiences. The woman is well prepared for the board meeting and attends it more than men. Furthermore, studies linking gender and ethics have revealed that women are more ethical in their judgements and decisions than men, and they put in place active monitoring rules to detect fraud in financial reports [94]. Therefore, women are interested in being appointed to the audit, nomination, and CG committees rather than the remuneration committee. For example, in China, Luo et al. [72] found that female directors play an important role in reducing REM. This negative association between female directors and REM is particularly stronger when the percentage of their shareholding is high. Female directors, due to their shareholding, are more willing to supervise and monitor earnings manipulation. Similarly, Orazalin [77] found that the presence of female directors and independent female directors on the board can reduce the practice of earnings manipulation in Kazakhstan. Similarly, Chee and Tham [36] found a negative relationship between female directors and the level of earnings manipulation in Singapore.

Alves [15] also revealed a negative relationship between female director and AEM in European Union countries. The tendency and propensity to conduct earnings manipulations is lowered with the presence of woman on the board. The impact of female representation is more manifested when there are at least three members on the board.

On the other hand, other literature found that gender diversity did not prevent earnings manipulation or improve firm performance. For example, Hassan and Ibrahim [58] in Nigeria reported a positive association between REM and the presence of women on the board. The female directors are not effective in hindering the bad practices of the management. In the same view, Akpan and Amran [9] in the Nigerian context presented a significant negative relationship between gender diversity and performance. The feasible cause of the negative results could be attributed to different performance measures. Bala and Gugong [28] found a positive relationship between female directors and opportunistic EMs. This may be the result of the widespread belief that women are weaker in questioning and validating the activities of managers. Later, Waweru and Prot [94] investigated whether the fulfilment of the CG structure mitigates the manipulation of EMs in Kenya and Tanzania. The cross-country analysis revealed a positive relationship between board diversity and DAs. The rationale for this finding is that women are more conservative and risk-averse when making investment decisions. This has a negative impact on monitoring functions. Furthermore, the application of CG is not mandatory for all listed companies in East Africa. Similarly, Anh and Khuong [18] in Vietnam context found positive correlation between woman on the board and REM, while negative relationship between Female on board and AEM. This result may be due the vital role of female on the board to keep the degree of EM at suitable level through the trade-off selection between AEM and REM to inhibit risky impact on the firm value on the long-term basis.

Interestingly, Sun et al. [91] found a non-significant relationship between the percentage of female directors in ACs and the level of EMs. The possible justifications for these findings are that many female directors did not view all EMs as unethical and bad, especially when used to create a stable financial environment. In addition, female directors may be more ethical than their male counterparts but are unable to influence the rest of the board. There is also no consistency in the decisions of women on ACs.

In the Egyptian context, to the best of our knowledge, there is a lack of studies investigating the relationship between gender diversity and the quality of reporting. Abdou et al. [3]examined the relationship between female directors and the quality of financial reporting using the 50 most active companies. They found that companies with a low number of women tend to have a low level of EM. Noting that this study focused on a small sample size and the data on which the study is based were collected along enough before the issuance of the EGX recommendation regarding the issuance of rules of non-discrimination against women on the board. El-Dyasty and ElAmer [44] examined the impact of female leadership on the quality of financial reporting using abnormal accruals. They found that increasing the number of female directors, female executives, and women on the audit committee improves the quality of financial reporting. Salem et al. [85] found that gender diversity is positively and significantly related to firm value in both Egyptian and American context. They recommended CG authorities to increase the proportion of women on the board, as they are interested in increasing the economic value of the firm and allocating more resources to investment projects rather than building economic empires. It seems that there is relatively little focus of evidence on the relationship between gender diversity and earnings management in developing countries in general and even less focus on the Middle East such as the Egyptian context. Specifically, REM practice has remained a largely unexplored area. Egyptian laws and corporate governance are silent on the role of gender diversity in the boardroom. This is evidenced by the statistics reflected in the Egyptian Country Report (2017), which shows that the average representation of women on the boards of the top ten listed companies is 6.13%, which represents a weakness in the strategies of the Egyptian Stock Exchange. This result is relatively like Salem et al. [85] who also revealed that the average of gender diversity in Egyptian listed companies is 5.6%, which is relatively lower than the average of gender diversity in the USA with an average of 19.8% (minimum of 6% and maximum of 50%). Recently, laws and codes are working to pay more attention to gender diversity and to include this issue in the broader context of sustainability and stock exchange strategies.

In summary, and in line with the mixed nature of the existing theoretical literature on board diversity, the empirical studies have produced conflicting results. These studies include those reporting (1) significant positive results such as Bala and Gugong [28], Waweru and Prot [94], (2) significant negative results [6, 5, 13, 56, 69, 70, 71, 72, 74], and (3) insignificant relationship between board diversity and EMs such as Habbash [57], Hassan and Ibrahim [58]. The conflicting international evidence may be explained by the fact that previous studies use different board diversity, EM techniques, performance proxies, sample periods, estimation techniques, and country and context differences. Accordingly, more research is needed to investigate the relationship between female directors and earnings manipulation using a larger sample and different proxies to measure financial reporting quality. In addition, it is more critical to understand and even explore the motives behind the recent decree issued by the Financial Regulatory Authority (FRA) regarding the appointment of female directors on the board. This study proposes the following hypotheses based on the above empirical findings:

Hypothesis 1

The gender diversity of the board is negatively associated with the level of EM practices.

Hypothesis 1.a

The number of female directors on the board constrains accrual EM practices.

Hypothesis 1.b

The number of female directors on the board constrains real EM practices.

Research methods

Data and Sample

We used companies listed on the Egyptian Exchange (EGX) to build our database. The EGX has been growing again because of an economic reform program and privatization. In this study, we examined a sample of 78 listed non-financial companies from 2009 to 2021. Firms without information for at least three years and firms with significant missing corporate governance data were excluded from our study. Table 1 describes the structure of our panel database (sample summary). The primary manual data sources are the EGX, the Capital Market Authority (CMA), and the Egypt for Information Dissemination (EGID). Data for the set of control variables and EM proxies are computed using DataStream data.

Table 1 Summary of variables and their measurement

The study focused on companies listed on the Egyptian stock exchange, initially comprising a total of 226 companies. To ensure the relevance and reliability of the sample, certain exclusions were made. First, financial, insurance, and investment companies were excluded, reducing the number of companies by 47. In addition, companies with at least three years of missing financial information were excluded, resulting in the removal of 30 companies. To further refine the sample, industries that lacked homogeneity were excluded, resulting in the removal of five companies. Sectors that did not consist of at least seven companies were also excluded, resulting in the removal of 18 companies. To maintain data consistency, companies with missing DataStream information and companies with missing corporate governance data were excluded, resulting in the removal of 23 and 25 companies, respectively. After these exclusions, the total number of firms included in the sample was 78, representing 36% of the original 226 firms listed on the Egyptian Stock Exchange. This rigorous selection process aimed to ensure a more focused and representative dataset for the study's analysis, thereby increasing the robustness of the findings.

Variables measurement

Dependent variables

The study measures EM practice using AEM and REM; first, discretionary accruals (DAs) are used as a proxy for AEM using different models. They are the modified Jones model [41], the Kasznik model [63], the performance adjusted discretionary accruals (DAs) model [67], and the Raman and Shahrur model [80]. Second, REM can be implemented by manipulating operating cash flow, overproducing inventory to reduce cost of goods sold, reducing discretionary spending such as advertising and research and development (R&D), and reducing general selling and administrative expenses [25, 24, 38, 68, 84].

  • Accrual earnings management model

DAs are used as a proxy for accruals EM using different models. Total accruals (TAC) are calculated as the difference between net cash flow from operating activities and net profit for company i in year t. To measure EM, DAs are estimated which are the residuals of modified Jones model (Eq. 1), the Kasznik model [63] (Eq. 2), the performance adjusted DAs model [67] (Eq. 3), and the Raman and Shahrur model [80] (Eq. 4). In these models, non-discretionary provisions are estimated as follows:

$$\frac{{{\text{TAC}}_{it} }}{{{\text{TA}}_{it - 1} }} = \alpha_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{\Delta {\text{REC}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{{\text{PPE}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \varepsilon_{it}$$
(1)
$$\frac{{{\text{TAC}}_{it} }}{{{\text{TA}}_{it - 1} }} = \alpha_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{\Delta {\text{REC}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{{\text{PPE}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{3} {\text{CFO}}_{it - 1} + \varepsilon_{it}$$
(2)
$$\frac{{{\text{TAC}}_{it} }}{{{\text{TA}}_{it - 1} }} = \alpha_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{\Delta {\text{REC}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{{\text{PPE}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{3} {\text{ROA}}_{it} + \varepsilon_{it}$$
(3)
$$\frac{{{\text{TAC}}_{it} }}{{{\text{TA}}_{it - 1} }} = \alpha_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{\Delta {\text{REC}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{1} \left( {\Delta {\text{REV}}_{it} - \frac{{{\text{PPE}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{3} {\text{ROA}}_{it} + \beta_{4} {\text{GO}}_{it - 1} + \varepsilon_{it}$$
(4)

where \({\text{TAC}}_{it}\) is total accruals for firm i at time t, \({\text{TA}}_{it - 1}\) is total assets for firm i at year t − 1, \(\Delta {\text{REV}}_{it}\) is Change in revenues scaled by total assets, \(\Delta {\text{REC}}_{it}\) is change in account receivable scaled by total assets, \({\text{PPE}}_{it}\) is gross property plant and equipment for firm i at time t, \({\text{CFO}}_{it - 1}\) is cash flow from operating activities for firm i for year t − 1; \({\text{ROA}}_{it}\) is return on assets for firm i at time t, \({\text{GO}}_{it - 1}\) growth opportunities for firm i at year t − 1, and \(\varepsilon_{it}\) is error term.

  • Real earning management model

REM can be conducted by manipulating operating cash flow, or overproducing inventory to reduce cost of goods sold, or reducing discretionary spending such as advertising, R&D, and general selling and administrative expenses [38, 68, 84]. The following models are used to measure REM, developed by Roychowdhury [84].

$$\frac{{{\text{CFO}}_{it} }}{{{\text{TA}}_{it - 1} }} = \beta_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{2} \left( {\frac{{{\text{Sales}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{3} \left( {\frac{{\Delta {\text{Sales}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \varepsilon_{it}$$
(5)
$$\frac{{{\text{PROD}}_{it} }}{{{\text{TA}}_{it - 1} }} = \beta_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{2} \left( {\frac{{{\text{Sales}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{3} \left( {\frac{{\Delta {\text{Sales}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{4} \left( {\frac{{\Delta {\text{Sales}}_{it - 1} }}{{{\text{TA}}_{it - 1} }}} \right) + \varepsilon_{it}$$
(6)
$$\frac{{{\text{DISEXP}}_{it} }}{{{\text{TA}}_{it - 1} }} = \beta_{1} \left( {\frac{1}{{{\text{TA}}_{it - 1} }}} \right) + \beta_{2} \left( {\frac{{{\text{Sales}}_{it} }}{{{\text{TA}}_{it - 1} }}} \right) + \varepsilon_{it}$$
(7)

where \({\text{CFO}}_{it}\) is cash flow from the operation for firm i at time t, \({\text{PROD}}_{it}\) is the sum of the cost of goods sold and change in inventory for firm i at time t, \({\text{DISEXP}}_{it}\) the sum of selling and marketing expenses, general and administrative expenses, advertising expenses, and research and development expenses for firm i at time t; \({\text{TA}}_{it - 1}\) total assets for firm i at time t − 1, \(Sales_{it}\) is sales for firm i at time t, \(\Delta {\text{Sales}}_{it}\) is the change of sales for firm i at time t, \(\Delta {\text{Sales}}_{it - 1}\) is the change of sales for firm i at time t − 1, and \(\varepsilon_{it}\) is error term.

Note that the predicted variables from Eqs. (5), (6), and (7) are named as follows: abnormal levels of cash flow from operations (ABCFO), abnormal level from the sum of cost of goods sold and change in inventory (ABPROD), and abnormal level from the sum of advertising, R&D, and general selling and administrative expenses (ABDISCX). In addition, the study measures REM using three aggregate proxies (RM1, RM2, RM3) in line with several studies (e.g. [38, 84, 99], Braam et al. 2015). These different proxies are summarized as follows:

$${\text{RM}}_{1} = - {\text{ABCFO}} + {\text{ABPROD}}$$
(8)
$${\text{RM}}_{2} = - {\text{ABCFO}} + {\text{ABDISEXP}}$$
(9)
$${\text{RM}}_{3} { = } - {\text{ABCFO}} + {\text{ABDISEXP}} - {\text{ABPROD}}$$
(10)

where ABCFO is abnormal cash flows from operations, ABPROD is abnormal production costs, and ABDISEXP is abnormal discretionary expenditures. The higher the value of each of the three aggregate proxies (RM1, RM2, RM3), the more likely it is that the company is engaged in real-based activity management.

Main independent variables and control variables

Gender diversity is measured as the number of female directors divided by the total number of directors on the board [1, 27, 25, 42, 50, 57, 62, 93, 95, 96].

In addition, we include several control variables to balance the firm and firm-specific variances in the sample, which have the propensity to influence the dependent variable (EM). Different control variables are included to organize the causal relationships in the model, to obtain a more complete empirical model and to eliminate the predicament of endogeneity.

According to Al-Najjar and Clark [12], Attia [27], Attia et al. [25], Attia et al. [24], Attia and Mehafdi [26], Emile et al. [46], we include these control variables such as leverage (LEV), operating cycle (OC), firm size (Size), profitability (ROA and ROE), gearing (Gear), liquidity (LIQ), asset tangibility (TANG), and EM Flexibility (EMFLEX). Table 1 summarizes the variables studied and how they are measured.

Econometric models

In this study, we investigate the impact of gender diversity on the real/accrual EMs (REM/AEM). To do so, we employed system generalized method of moments (GMM) developed by Blundell and Bond (1998). The proposed regression model is defined by the following equation:

$${\text{EM}}_{it} = \beta_{0} + \beta_{1} {\text{EM}}_{it - 1} + \beta_{2} {\text{BRDIV}}_{it} + \beta_{j} \sum\limits_{j = 4}^{13} {X_{it} } + \varepsilon_{it}$$
(11)

where \({\text{EM}}_{it}\) is the real/accrual EMs for firm i at time t, \({\text{EM}}_{it - 1}\) is one year lag of Islamic real/accrual EMs, \({\text{BRDIV}}_{it}\) is the board diversity for firm i at time t, \(X_{it}\) is the vector of control variables (ROA refers to return on assets; ROE refers to return on equity; LIQ refers to liquidity; Lev refers to leverage; Gear refers to gearing; Size refers to firm size; AT refers to asset tangibility; OC refers to the operating cycle; EMFLEX refers to EM-flexibility.), and \(\varepsilon_{it}\) is the error term.

The system GMM has been used in several studies (e.g. [22, 23, 27, 26, 31, 39, 48, 66, 73]). This technique has several advantages. First, it can deal with the problems of omitted variables, measurement errors, differences between dynamic panels, and possible endogeneity due to any independent variables related to the error term. Second, it works well when a panel has a shorter time dimension (where T is 14) than its cross-sectional dimension (where N is 27). However, AR (2) model did not show significant results for the test of second-order autocorrelation, implying that there is no autocorrelation [19] (Blundell and Bond 1998). This means that the model has an appropriate lag structure and only one lag for the NFRD variable is sufficient. To ensure the accuracy of the system GMM technique, we used appropriate instruments, such as the values of t − 1 and t − 2 for the difference equation and a single lag for the level equation.

We run the “xtabond2” command to perform the system GMM estimation using Stata software, following Roodman (2009). In this study, we perform post-estimation specification checks. Specifically, we use the Hansen J-test for over-identifying restrictions and the Arellano and Bond (1991) AR (2) test for no autocorrelation in the second-differenced errors. In addition, we use collapse sub-option for the xtabond2 command to reduce the number of instruments (Roodman 2009).

Empirical results and discussion

Descriptive statistics and correlation matrix

Table 2 shows the descriptive statistics for the variables in the model. The results show that the mean of board diversity is relatively very low (0.067), which can be considered as slightly unsatisfactory. This ratio is relatively like the findings of [85] who found that the ratio of gender diversity in the Egyptian context is 5.6%. The findings of Brammer et al. (2007) were strongly supported by the relatively low proportion of female directors as found in the current study.

Table 2 Descriptive statistics

The Pearson correlation between the independent variables and the control variables within the REM/AEM models indicates no significant correlation between the variables. Therefore, collinearity could not compromise the interpretation of the regression coefficients of the independent variables in these six models. None of these correlations were significant, as the correlations are lower than 0.80 (Table 3).

Table 3 Correlation matrix results

In addition to the correlation analysis, the variance inflation factor (VIF) test was carried out to check for any multicollinearity between the independent variables. As stated in the previous studies, a VIF value of more than 10 indicates the problem of serious multicollinearity in the regression analysis. Table 4 presents the results of the VIF and tolerance values for the variables of the study. The estimated VIF values for all independent variables are lower than the threshold value of 10, indicating the absence of multicollinearity in these models (Table 4).

Table 4 Test results for VIF and tolerance values

Board gender diversity and accrual earnings management

Regarding board diversity, Table 5 presents the system GMM estimation results between board gender diversity, control variables, and different models of AEM. The results show that board diversity is significantly and negatively correlated with AEM (Kasznik model, Kothari et al. model, and the Raman and Shahrur model) at 1% and 5% significance levels. These results are in line with Adams and Ferreira [6], Abbott et al. [2], and Ntim [76] who found that women are more risk averse and conservative in making financial decisions and more vigilant in monitoring and control functions. Therefore, female directors are more interested in reducing agency costs and improving the quality of financial reporting. Moreover, in France, Lakhal et al. [70] found that women are effective in monitoring and controlling functions and are then considered as an important CG device. As a result, women may be inherently more likely to detect earnings manipulation to avoid litigation risk and loss of reputation as they are not easily accessible to such positions. This finding supports the critical mass theory, which reinforces the need to increase the number of women on boards through regulation and legislation.

Table 5 Board gender diversity and accrual earnings management

A possible explanation for such findings is that there is a tendency in Egyptian firms to increase the proportion of women on boards and to give them enough power to make effective decisions and improve the quality of financial reporting. These results support hypothesis (H1b) that increased gender diversity leads to higher earnings quality. On the other hand, the empirical results show that board diversity is positively and significantly related to EM using the modified Jones model. This result is consistent with the findings of Bala and Gugong [28] in Nigeria and Waweru and Prot [94] in Africa, which showed a significant and positive relationship between diversity and DAs due to the voluntary application of CG guidelines (comply explain principle) in developing countries. Developing countries may need to shift CG culture from mere compliance and box-ticking to one that reflects the essence of good governance.

Board gender diversity and real earnings management

Regarding board diversity, Table 6 presents the results of the system GMM estimation between board gender diversity, control variables, and various proxies for real earnings management (REM). The results show that board diversity has a significant and negative impact on the ABCFO, ABPROD, ABDISX, RM1, RM3 models of REM. The negative coefficient of gender diversity supports hypothesis (H1a), implying that female directors enhance superior earnings quality. These results are in line with Nguyen and Faff [74], Kılıç and Kuzey [69], Adamu et al. [5], Gull et al. [56] who found that board diversity is more likely to reduce earnings manipulation and thus increase firm value. Gender diversity can improve communication with female customers, increase the effectiveness of decision-making, improve the firm's image, introduce different and non-traditional views to the board, and ensure a better understanding of the market. In contrast, the study found a non-significant and negative relationship between board diversity and RM2 as a proxy for REM. The comparatively low number of female directors on the board (as shown in the descriptive analysis) may be one explanation for these findings; they lack the capacity to monitor and control the functions of managers. These findings may be consistent with the views of Adams and Ferreira [6], Habbash [57], Hassan and Ibrahim [58], Lakhal et al. [70], Lara et al. [18].

Table 6 Board gender diversity and real earnings management

Robustness check: feasible generalized least square (FGLS)

Several further tests are carried out to establish the credibility of the main results. The first set of tests, which includes the main findings, is reported from the main model with alternative proxies for REM. In addition, FGLS analysis, pooled OLS with robust standard error, and fixed/random effects panel data analysis are conducted as robustness checks of the findings.

Regarding board diversity and REM, the FGLS test as shown in (Table 7) indicates that board diversity has a significant and negative impact on the ABDISX, RM1, RM2, RM3 models of real-based EM. In contrast, there is a significant and positive relationship between board diversity and ABCFO as a proxy for EM at 5% and an insignificant relationship with ABPROD. Consistent with the results of the main test for real-based EM, the direction and significance level between board diversity and REM are almost the same as in the main test, except for ABPROD. However, the significance level drops from 1 to 5%. Regarding the relationship between board diversity and DAs, the FGLS results are consistent with the main findings. Both tests confirm that gender diversity (women) has a negative and significant relationship with DAs using different models at 1% in the main test and 5% in the sensitivity test. This result recommends policy makers in the Egyptian stock market to consider age, gender, and nationality diversity in the selection of directors. This supports that increased gender diversity leads to better earnings quality.

Table 7 Robustness check: FGLS results

Conclusion

This study examines the extent to which women on the board can deter REM/AEM in Egypt. In this paper, we use the system GMM in addition to standard regression models on a sample of 1014 firm-year observations from the Egyptian context from 2008 to 2021. The results of the study are mainly mixed, consistent with the multi-theoretical framework's reliance on insights from agency, stewardship, resource dependence, and institutional theories. These results are obtained after controlling for several factors, including firm size, liquidity, ROE, ROA, capital structure, leverage, asset tangibility, operating cycle, and earnings flexibility.

Our results show that companies with a high proportion of female directors have lower levels of REM and AEM. This conclusion clearly supports the notion that female board members, as a fundamental mechanism of corporate governance, play an important role in eliminating agency problems and improving financial reporting quality. This study contributes to the existing literature in three ways. First, the use of a unique (hand-collected) dataset that mimics different corporate governance structures and circumstances allows us to shed more light on the role of institutional factors in developing countries in defining the relationship between BODs and EMs. The analysis in this study also sheds more light on the usefulness of monitoring and the importance of BOD processes. Second, the data obtained are based on the use of several proxies for earnings management, which provide a solid basis for the study's conclusions. Third, the study provides substantial support for the FRA's recommendation on the importance of including women on the boards of companies listed on the Egyptian stock exchange. As a result, the study provides insights and recommendations to regulators and policy makers on how to improve reforms and policies on the importance of increasing the number of female board members and the proportion of independent female board members in the emerging market. Finally, the findings may be useful for other emerging markets seeking to break through the glass ceiling and promote women into leadership positions.

Based on our findings, Egyptian policymakers can explore certain policy implications in the Egyptian stock market. When designing or updating the provisions of the CG Code, they should carefully evaluate the role of gender diversity. The Egyptian Stock Exchange should specify the percentage of women that companies should have, require companies to follow such a policy, and evaluate whether women are making valuable contributions on the board. Policy makers should encourage the corporation to consider the importance of incorporating female on BODs, as their participation and cooperation will be monitoring mechanism to reduce earnings manipulations. In addition, training programs should be provided to the female to improve their technical expertise and leadership qualities which may in turn benefit the effectiveness of the board.

Although our study yielded interesting results, it had several limitations. Firstly, the study is only applicable to one country. The report recommends that the study is expanded to include more years of data and countries in the MENA region to provide more insight into the different market responses to CG, external audit, and EMs. Future research can include age, education, experience, and culture as aspects of gender diversity. The study may also consider the financial and banking industries due to their distinct ownership, governance structure, and various regulations that govern these industries. Thirdly, despite the use of numerous alternative DAs models and other variables related to measurement error in the study, the results are not completely free of measurement error. Finally, there is an ongoing debate about the inefficiency of current accrual models for classifying DAs and non-DAs components.