1 Introduction

Research and development (R&D) and knowledge capital have been widely adopted as a competitive strategy (Gu 2016; Peters and Taylor 2017), and engagement in corporate social responsibility (CSR) can enhance core competitiveness, create firm value (Porter and Kramer 2006) and improve financial performance (Jo and Harjoto 2011; Chen, Hung, and Lee, 2018). It has been argued that CSR increases operational costs (Moore 2001) and tends to cover up for the inadequacies of management (Hemingway and Maclagan 2004; Prior et al. 2008), which can decrease profitability (Chang 2009; Chang and Shen 2014). However, could CSR engagement strengthen the efficiency of R&D and accumulate knowledge capital to alleviate agency problems and improve financial performance? Thus, this study explores the impact of CSR on knowledge capital, R&D, and financial performance.

CSR refers to actions in the realm of environment, society, and governance (ESG) addressing environmental protection and social concerns (Starks 2009), which can influence the allocation of funding and selection of targets (Guenster et al. 2011). This implies that investors focus on profitability and corporate responses to environmental and social issues or their interactions with stakeholders. (Becchetti et al. 2012), and more than half of large firms in the United States (US) publish CSR reports (Galema et al. 2008). Pervious research has found that CSR engagement can reduce the cost of equity capital and uncertainty (Chen et al. 2020; Shiu and Yang 2017), improve the reputation of the firm and attracting investors (Lee et al. 2020; Shi, 2016; Flammer 2015). Jo and Harjoto (2011) argued that firms with better CSR performance increase profitability and found the R&D expenditures increasing. Some scholars explained that both R&D and CSR engagement can create assets and strengthen the competitive ability of firms (Padgett and Galan 2010; Fu et al. 2020), and higher R&D expenditure is accompanied by higher CSR engagement (Ho, Lin, Tam, and Tong, 2016).

R&D investing create knowledge, which determines innovative development (Hombrt and Matray 2018) and long-lasting competitive advantage (Peters et al. 2017), which can improve long-term operational performance, steady corporate growth, and increase stock returns (Clausen and Hirth 2016; Hsu et al. 2010; Eberhart et al. 2004; Chan et al. 2001). Peters and Taylor (2017) considered the accumulation and depreciation of R&D to estimate knowledge capital, which positively affects firm value (Chiu et al. 2021). Knowledge capital also can convert intangible assets into salable assets to mitigate financial risk (Hegde and Mishra 2023).

Previous studies focused on the impact of R&D on CSR (Padgett and Galan 2010; Fu et al. 2020), or the interactive effect between R&D and CSR (Ho, Lin, Tam, and Tong, 2016). They believed that R&D was an expense item and ignored the importance of capital expenditure and R&D in firms’ intangible assets to improve financial performance. These researches also neglect how different components of CSR affects R&D. Therefore, this study estimated knowledge capital according to Peters and Taylor (2017) and R&D to explore the impact of knowledge capital and R&D on CSR engagement in this study.

The findings showed that CSR positively affects knowledge capital and R&D, which implies the firms with better CSR performance tend to accumulate knowledge capital and invest in R&D. The results also found that CSR can strengthen the efficiency of knowledge capital and R&D to increase financial performance rather than only firm value, enhance information transparency and alleviate the probability of agency problems and greenwashing. This study used instrumental variables, the generalized method of moments (GMM), and the Hausman Test (Hausman 1978) to control endogeneity concerns about CSR engagement. There are still supporting results.

The results of the present study have three primary contributions to the literature. First, this study provides insight into how the CSR engagement influence knowledge capital accumulating and R&D investing. Second, the analysis accounts for knowledge capital and R&D as a part of assets to influence financial performance rather than focusing on only firm value, thereby providing a deeper understanding of why and how the effect of distinct CSR performance manifests between knowledge capital and R&D. Third, This research provides a contingency perspective on the said effect, as it examines the interactive effect of knowledge capital, R&D, and CSR on financial performance and firm value, thus contributing to a clearer understanding of the factors within this relationship.

The remainder of this study is organized as follows. Section 2 presents a review of the literature. Section 3 is the methodology and data. Section 4 presents empirical results. Conclusions are presented in Sect. 5.

2 Literature review

2.1 Knowledge capital

Jo and Harjoto (2011) found that CSR engagement can increase firm value, and also raise R&D expenditures. Does this imply that investing in CSR can enhance knowledge capital accumulation? The accumulation of knowledge capital affects the core competitiveness of firms, exerts a significant influence on improving their long-term financial performance, and increases firm value. (Chan et al. 2001; Eberhart et al. 2004).

Knowledge capital is more important in competitive industries. Gu (2016) found that knowledge accumulation is a core element determining the competitiveness of firms in competitive industries. Peters et al. (2017) argued that investment in knowledge capital can improve production efficiency and firm value. Hsu et al. (2010) considered that initial public offering (IPO) firms invest more resources in knowledge capital to solidify long-term core competitiveness. Hombrt and Matray (2018) also indicated that competition from Chinese firms has prompted firms in the US to utilize knowledge capital to differentiate their products, promote innovation, maintain profits, and avoid relegation from the market.

However, when firms invest in R&D, profitability and stock returns are often underestimated. Hirshleifer, Hsu, and Li (2018) found that when investing in R&D, investors tend to disregard profitability and stock returns until the R&D achievements come to fruition, leading to long-term core competitiveness. Adner and Kapoor (2010) considered that internal innovation can attract upstream and downstream technological leaders to make up for a lack of external innovation, regardless of the maturity of the firm. Hirshleifer et al. (2013) further explained that the market cannot effectively predict innovation efficiency and the achievements of R&D expenditures but are of great help in improving future operating performance and increasing stock returns. Gao and Chou (2015) also found that large-scale multinational firms must continuously invest in R&D and create rigorous patent layouts to protect their niche market and prevent the erosion of profits. If small firms invest in R&D, they attract large firms to mergers and acquisitions. Phillips and Zhdanov (2013) argued that large firms’ R&D and innovation capabilities are not better than small firms; however, large firms are able to engage in external innovation via mergers and acquisitions to maintain steady profitability. Chiu et al. (2021) also explained that powerful CEOs are a key factor affecting investment in innovation aimed at accumulating knowledge capital. Hegde and Mishra (2023) found that patented knowledge capital not only improves the transparency of R&D expenditures and converts intangible intellectual property into salable assets but also alleviates the financial risk and cost of equity capital.

According source-basic view, Padgett and Galan (2010) investigated the relationship between R&D intensity and CSR. The empirical results found that positive significantly related CSR in manufacturing industries. They pointed out that both R&D and CSR can create an asset and enhance competitiveness to improve the community’s welfare and satisfy stakeholders’ expectations related to the firm’s prevailing environment. Ho et al. (2016) found that interaction between R&D and CSR significant positive affects firm value. they explained that the firm with higher CSR performance have to higher R&D valuation. Fu et al. (2020) also found that R&D positively significantly related to CSR, and argued that the financial slack is a moderator between R&D and CSR. Jadiyappa and Chauhan (2023) explored the different impact of CSR on R&D during the mandatory CSR regulation before and after in India. They demonstrated that CSR is an intangible resource that firm gains specialized knowledge from stakeholders and positive affects innovation based on the resource-based view. Du et al. (2024) investigated the impact of different sea level rise risk of firms in the U.S. on CSR and R&D. The empirical results found that the firm with higher sea level rise risk engage less in future-oriented actives including CSR and R&D, but firm with higher sea level rise risk and elder CEO promote the CSR engagement. Anzola-Román et al. (2024) pointed out that environmental CSR provides process innovation, and social CSR contributes only to process and technological innovations when internal firms engage.

Previous research found that the accumulation of knowledge capital and R&D can strengthen innovative capabilities, core competitiveness, and profitability (Hsu et al. 2010; Peters et al. 2017; Hombrt and Matray 2018). The firm has higher R&D expenditures to enhance CSR engagement (Ho et al. 2016; Fu et al. 2020). Some scholars considered that better CSR performance provide new channels for innovation (Jadiyappa and Chauhan, 2023; Anzola-Román et al. 2024). On the basis of the above, developing the hypothesis as follows.

H1a

The firm with higher CSR performance has a positive effect on knowledge capital.

H1b

The firm with higher knowledge capital has a positive effect on financial performance.

H2a

The firm with higher CSR has a positive effect on R&D.

H2b

The firm with higher R&D has a positive effect on financial performance.

2.2 Corporate social responsibility

CSR has become a crucial op erating strategy in firms; however, implementing CSR should invest firm resources, which can increase operational costs and reduce profitability (Moore 2001). Some scholars explained that managers promote CSR to further their interests and shift public focus away from managerial inadequate abilities (Hemingway and Maclagan 2004). Schuler and Gording (2006) argued that firms use CSR to polish their image and attract the attention of consumers to decrease R&D and profitability.

Barnea and Rubin (2010) used the over-investment hypothesis to explain that managers overinvest in CSR based on their self-interest motivation and a negative relationship between financial performance and CSR performance. Adhikari (2016) also indicated that firms with better CSR performance are more susceptible to agency problems, influencing the evaluation of firms by financial analysts. Kao et al. (2018) found that Chinese state-owned firms increase agency costs and lowers financial performance, whereas private firms with better CSR promotion can tends to increase firm value. Nofsinger et al. (2019) considered when firms engage in social and environmental issues, it implies that the firms have more uncertainty, causing institutional investors to decrease their holdings and leading to a negative relationship between CSR and stock returns. (Chang 2009).

Firms engage in CSR to enhance communication with stakeholders and gain the trust of consumers and investors, reduce information asymmetry, improve reputation of the firm (Heal 2005). Vilanova et al. (2009) argued that firms’ interactions with stakeholders can strengthen the core competitiveness of the firm to increase operating efficiency and financial performance. Groysberg et al. (2011) also explained that the firm that CSR engagement can improve long-term financial performance. Shiu and Yang (2017) reported that CSR engagement can reduce uncertainty and lessens the impact of sudden incident shifts on stock prices such as an insurance-like effect (Lööf et al. 2022). Similarly, Lins et al. (2017) found that CSR engagement can avoid a decrease in profitability during the financial crisis. Chen et al. (2018) reported that CSR promotion can reduce idiosyncratic risk during market recession. Nguyen et al. (2020) explained that firms with better CSR performance find it easier to attract institutional investment and increase shareholdings to maximize shareholder value. Tsang et al. (2021) also considered that engaging in CSR can promote productivity and innovation. Zhang et al. (2021) found that the firm with CSR information disclosure suffer the smaller firm value and reputation losses during the crisis period.

Additionally, Tseng and Demirkan (2021) indicated that CSR can alleviate and divert the risk from CEO overconfidence to reduce costs of equity. Yoo and Managi (2022) argued that engagement in CSR or ESG can enhance profitability and the value assessment of intangibles. Roy et al. (2022) reported that firms with better CSR performance have strong stock market liquidity and higher firm value in the long-term. Zhang and Zhang (2023) also found that firms can engage in CSR to build an interactive channel with stakeholders to reduce information asymmetry and financial constraints. Ho et al. (2024) demonstrated that CSR engagement mediates agency problems from controlling shareholders and cash holding with higher-risk firms.

There is a long-term debate on the relationship between CSR and financial performance. Most research found that CSR not only positively related to financial performance (Groysberg et al. 2011; Zhang et al. 2021) but also the positive relationship between CSR and R&D (Fu et al. 2020; Anzola-Román et al. 2024). Thus, based on the above, I consider the impact of the interactive effect with CSR, knowledge capital, and R&D on financial performance and propose the hypothesis as follows.

H3

The firm with better CSR and higher knowledge capital has a positive effect on financial performance.

H4

The firm with better CSR and higher R&D has a positive effect on financial performance.

3 Methodology and data

3.1 Methodology

This study employed the CSR indexFootnote 1 from Chen et al. (2018) to measure the CSR performance of list firms in Taiwan. Based on the document, “Corporate Social Responsibility Best Practice Principles for TWSE/TPEx-Listed Companies” imposed by Taiwan Stock Exchange (TWSE) and the Taipei Exchange (TPEx), the index lists 24 items related to the following 6 indicators, which includes policy of CSR (Policy), the environment (Environment), employees and suppliers (Employee), information transparency of CSR (Information), others of CSR (Others), and the authentication of CSR practices by third parties (Authentication). The CSR index is shown as follows:

$$\:{CSRI}_{it}\text{=}{Policy}_{it}{+}{Environment}_{it}{+}{Employee}_{it}{+}{Information}_{it}{+}{Others}_{it}{+}{Authentication}_{it}$$
(1)

where CSRIit denotes the CSR index of firm i in year t; Policyit indicates CSR policies introduced of firm i in year t ; Environmentit is an indicator of efforts to protect the environment of firm i in year t; Employeeit is an indicator of efforts to protect the rights of employees rights and suppliers by firm i in year t; Informationit refers to CSR-related information disclosed of firm i in year t; Othersit encompasses other issues related to the external CSR implementation performance of firm i in year t, and Authenticationit indicates whether the conditions of the CSR reports and product services of firm i in year t are authenticated or assured by third parties.

Furthermore, using the knowledge capital from Peters and Taylor (2017), which is based on the sum of annual R&D expenditures multiplied by a depreciation rate. Knowledge capital uses the following Eq. (2):

$$\:{Knowledge}_{it}{=}\left(\text{1-}\delta\:\right){Knowledge}_{it-1}{+}{R\&D}_{it}$$
(2)

where Knowledgeit indicates the knowledge capital of firm i in year t; Knowledgeit−1 denotes the knowledge capital of firm i in year t-1; R&Dit indicates the R&D expenditures divided by total assets of firm i in year t; and δ indicates the rate of depreciation rate based on the mean equipment depreciation rate of per firms.

To explore H1a and H2a regarding the impact of CSR performance on the accumulation of knowledge capital, I set the panel regression model as Eq. (3):

$$Knowledg{e_{it}} = \,{\alpha _0} + {\alpha _t} + {\alpha _j} + {\alpha _j} + {\alpha _1}\,CSR{I_{it}} + {\alpha _2}{X_{it}} + {\varepsilon _{it}}$$
(3)

Where Knowledgeit includes the knowledge capital (Knowledge) and R&D of firm i in year t, the definitions of knowledge capital and R&D are the same as that in Eq. (2). CSRIit comprises the CSR indicators of firm i in year t, including CSR index, Policy, Environment, Employees, Information, Others, Authentication, and the difference between the CSR index of firm i in years t and t-1 (Net CSR). The definitions of the variables are identical to those in Eq. (1). Xit is a control variable based on Jo and Harjoto (2011), Chen et al. (2020), and Chiu et al. (2021), including CEO power, board capital, debt ratio, firm age, and firm assets. Finally, α0 is the intercept term, αt is the year fixed effect, and αj is industrial fixed effect, and εit is an error term.

To test H1b and H2b, and employed a panel regression model to investigate the correlations among CSR, financial performance, and knowledge capital with the aim of controlling year and industrial fixed effects, as Eq. (4):

$$Performanc{e_{it}} = {\alpha _0} + {\alpha _t} + {\alpha _j} + {\alpha _1}\,Knowledg{e_{it}} + {\alpha _2}{X_{it}} + {\varepsilon _{it}}$$
(4)

Here Performanceit is a proxy variable for profitability of firm i in year t, which includes ROA, ROE, and Tobin’s Q; and the definitions of Knowledgeit and CSRIit are identical to those in Eq. (2).

To examine H3 and H4, and used Eq. (5) explores the interaction effect between knowledge capital and CSR, as Eq. (5):

$$\begin{aligned} Performanc{e_{it}} = & {\alpha _0} + {\alpha _t} + {\alpha _j} + {\alpha _1}\,Knowledg{e_{it}} + {\alpha _2}\,Knowledg{e_{it}} \\ & \times CSRDumm{y_{it}} + {\alpha _3}{X_{it}} + {\varepsilon _{it}} \\ \end{aligned}$$
(5)

Here Knowledgeit × CSRDummyit is the interaction term of knowledge capital and CSR performance. CSRDummyit is a dummy variable for the indicator of CSR performance, which serves as a proxy variable for firms with better CSR performance (Best CSR) and worse CSR performance (Worst CSR). Best CSR equals 1 if the CSR index of firm i in year t is equal to or greater than the mean CSR index plus 1 standard deviation, and otherwise 0, whereas Worst CSR equals 1 if the CSR index of firm i in year t is equal to or less than the mean CSR index minus 1 standard deviation, and otherwise 0. The definition of control variable Xit is identical to that in Eq. (3).

3.2 Data

The data set used in this study included firms listed on the TWSE and TPEx from 2011 to 2017. Empirical data related to finance was obtained from the Taiwan Economic Journal (TEJ). Associated data was hand-collected manually from the Market Observation Post System (MOPS) of the TWSE, firm websites, and CSR reports drawn up in accordance with “Sustainable Development Best Practice Principles for TWSE/TPEx Listed Companies.” The sample included 1,487 firms with 9,551 annual datapoints.

4 Empirical analysis

4.1 Description

Table 1 lists the descriptive statistics of the empirical data used in this study. Panel A presents the variables describing the firm characteristics, including Knowledge Capitalt and R&Dt are 5.33 and 2.70. The mean ROAt, ROEt, and Tobin’s Qt are 7.58%, 13.43%, and 1.37, indicates that the sample firms-maintained profitability throughout the study period. In addition, a Tobin’s Qt exceeding 1 is an indication that the investors gave the firm a high valuation. Panel B presents the CSR indicators, which includes Policy, Environment, Employee, Information, Others, Authentication, and CSR index. The mean for Informationt and Authenticationt is 0.79 and 0.13 that were less than half of the full scores, which means that the sample firms were somewhat delinquent in having third parties authenticate disclosures related to CSR. Moreover, their overall CSR performance (CSR index) was only half of the full score.

Table 1 Descriptive statistics

Table 2 presents a Pearson correlation coefficient matrix of knowledge capital and the various CSR indicators. The significantly negative coefficients for Knowledge Capital, CSR index, R&D, and CSR indicate that firms investing in knowledge capital or R&D tended to neglect CSR. Information and Authentication were significantly negative at the 1% level of significance, which means that investment in R&D took precedence over Authentication of CSR-related reports by third parties. Thus, this study further investigates the relationship between CSR performance and knowledge capital, whether CSR promotion influenced knowledge capital accumulation, and whether knowledge capital accumulation influenced profitability and firm value.

Table 2 Pearson correlation coefficient matrix of knowledge capital and CSR

4.2 Corporate social responsibility and knowledge capital

To examine H1a and H2a, the impact of CSR engagement on knowledge capital and use Eq. (3) and panel regression analysis to analyze. The control variables in regression analysis included CEO power, board capital, debt ratio, firm age, and the natural logarithm of total firm assets (Ln (assets)). We also considered the fixed effects of industry, year, and market from an empirical analysis.

Table 3 lists the results of regression analysis pertaining to the impact of CSR performance on knowledge capital and R&D. In Models (1), the regression coefficients of CSR indext was 0.07 at the 1% level of significance, indicate that CSR engagement can promote the accumulation of knowledge capital. In Model (2), the regression coefficient of Net CSR was not significantly from 0. This shows that promoting CSR can lead to the accumulation of knowledge capital and strengthen core competitive advantage. In Models (3), the regression coefficients of CSR indext were significantly positively related with R&D at the 1% level of significance. In Model (4), the regression coefficient of Net CSR was not significantly from 0, which indicates that engagement in CSR enabled firms to continuously re-examine the assessment and improvement of operations while promoting active investment in R&D. Furthermore, it shows that investments in R&D and CSR must be long-term. This supports the hypothesis H1a and H2a.

Table 3 Knowledge capital and CSR index

Regression analysis was also used to explore the impact of CSR indicators on knowledge capital and R&D in year t, the results of which are listed in Table 4. The dependent variables are knowledge capital for Model (1) to Model (6) and the R&D for Model (7) to Model (12). The coefficients of Policyt, Environmentt, and Employeest in Models (1), (2), and (3) were not significant. In Models (4), (5), and (6), the coefficient t values of Informationt, Otherst, and Authenticationt were significantly positively related with knowledge capital at the 1% level of significance. In Models (7), (8), and (9), the coefficients of Policyt, Environmentt, and Employeest also were not significant. In Models (10), (11), and (12), the coefficients of Informationt, Otherst, and Authenticationt were 3.48, 3.87, and 3.39 were significantly positively related with R&D. This implies that CSR engagement is crucial to investing in R&D and knowledge capital accumulation. CSR engagement was quite vital for firms. Investment in external CSR, information disclosure, and the assurance of sustainability reports by third parties can further confirm a firm’s devotion to CSR to avoid agency problems, shift public focus, and greenwashing.

Table 4 Knowledge capital and CSR

These results show that the promotion of CSR can lead to the accumulation of knowledge capital and investment in R&D. This supports H1a and H2a; however, the effectiveness of these measures depends on internal systems for the protection of the environment and employee rights. Thus, CSR engagement can build an environment where R&D investments, knowledge capital accumulates, and core competitive advantages can be fully exploited (Fu et al. 2020; Jadiyappa and Chauhan, 2023). Nonetheless, this process depends on the adoption of external CSR, the disclosure of relevant information, and third-party authentication of corresponding reports, which can reassure external stakeholders, avoid agency problems, and greenwashing to ensure that R&D and knowledge capital accumulation proceed in accordance with stakeholder expectations.

4.3 Knowledge capital and financial performance

Exploring the impact of knowledge capital on financial performance to test H1b and H2b using Eq. (4). In addition, I employed that Eq. (5) to examine H3 and H4, the interactive impact of knowledge capital and R&D on financial performance as well as the interactive effects between CSR and knowledge capital. I also set dummy variables for the CSR performance indicator as a proxy variable indicating firms with the best and worst CSR performance that Best CSR equals 1 if the CSR index of firm i in year t is equal to or greater than the mean CSR index plus 1 standard deviation, and otherwise 0, whereas Worst CSR equals 1 if the CSR index of firm i in year t is equal to or less than the mean CSR index minus 1 standard deviation. The control variables used in regression analysis included CEO power, board capital, debt ratio, firm age, and the natural logarithm of total firm assets (Ln (assets)). We also considered the fixed effects of industry, year, and market.

Table 5 lists the results of regression analysis pertaining to knowledge capital, CSR performance, and profitability. In Model (1), the coefficient of Knowledge capitalt to ROAt was − 0.14. In Model (2), the coefficient of Knowledge capitalt × Best CSRt was 0.09, significantly positive at the 1% level. This implies that the simultaneous promotion of CSR and knowledge capital accumulation can enhance profitability. The regression coefficient of Knowledge capitalt × Worst CSRt was − 0.08 at the 1% level significantly negative related to ROAt. This implies that when firms neglected to promote CSR while investing in knowledge capital accumulation decreased profitability. In Models (3) and (4), the results of regression analysis pertaining to ROEt were identical to those for ROAt. In Model (5), the coefficient of Knowledge capitalt to Tobin’s Qt was significantly positive, indicating that the accumulation of knowledge capital can increase firm value. In Model (6), the coefficient of Knowledge capitalt × Best CSRt was 0.00, significantly positive at the 10% level related to Tobin’s Q. This indicates that the simultaneous promotion of CSR and accumulation of knowledge capital can more increase firm value. The coefficient of Knowledge capitalt × Worst CSRt was not differed significantly from 0, indicating that the accumulation of knowledge capital could improve the profitability and firm values. These results support H3 but partially support H1b.

Table 5 Knowledge capital, CSR, and profitability

Table 6 presents the analysis results of R&D, CSR, and profitability. In Model (1), the coefficient of R&Dt to ROAt was − 0.29, significantly negative at the 1% level of significance. This implies that increasing R&D expenditures had a negative impact on ROA. Considering the interaction effects in Model (2), the regression coefficient of R&Dt × Best CSRt was 0.17, significantly positive related to ROAt, and the t-value of R&Dt × Worst CSRt was − 4.47, significantly negative at the 1% level. This implies that the simultaneous promotion of CSR while investing in R&D can improve financial performance. In Models (3) and (4), the results of regression analysis pertaining to ROE were identical to those for ROA. In Model (5), the regression coefficient of R&Dt to Tobin’s Qt was 0.03, significantly positive at the 1% level. This implies that investment in R&D benefited future financial performance, which resulted in positive evaluations from investors. In Model (6) to account for interaction effects, the coefficient of R&Dt × Best CSRt was 0.01, significantly positive at the 10% level of significance. The coefficient of R&Dt × Worst CSRt to Tobin’s Qt was not differ significantly from 0, indicating that the firm increase R&D expenditures and CSR to attract the investors’ attention and investment to the extent that raises firm value. This supports H4 and partially supports H2b.

Table 6 R&D, CSR, and profitability

These empirical results indicate that accumulating knowledge capital and R&D investment can improve firm value. The interaction effects of knowledge capital accumulation and CSR promotion were enhanced to be particularly effective in promoting profitability. A negative relationship existed between R&D investment and profitability. It appears that the simultaneous promotion of CSR and R&D could improve profitability. In contrast, the long-term rise of CSR in conjunction with the accumulation of knowledge capital and investment in R&D could have a pronounced positive effect on profitability (Jadiyappa and Chauhan, 2023).

4.4 Robustness

This study also considered the endogenous relationship between CSR and knowledge capital, dynamic endogenous effects, and self-selection bias, which employ. instrumental variables, the generalized method of moments (GMM), and the Hausman Test (Hausman 1978) to robustness check.

First, investigating the endogenous effect, I use Herfindahl-Hirschman index (HHI) as an instrumental variable. The results of regression analysis are shown in Table 7. Model (1) is first-stage regression for the CSR index, which the HHIt as the instrumental variable was 2.05, significantly positive at the 5% significance level. This indicates that the HHIt moderated the endogenous relationship. Models (2) and (3) are the second-stage regression of knowledge capital and R&D, respectively, the coefficients of CSR indext _hat are not significantly differed from 0. This means that it has significant endogeneity with CSR, knowledge capital, and R&D. I also considered endogeneity with Net CSR, knowledge capital, and R&D to use HHIt as an instrumental variable moderating endogeneity, as shown in Model (4), and that result was not significantly related. I performed a second-stage regression analysis, in which the regression coefficients of CSR indext _hat in Models (5) and (6) could not differ significantly from 0.

Table 7 CSR and knowledge capital: instrumental variable

Further, considering the dynamic endogenous effects, I employ the GMM to robustness test in Table 8. In Models (1) and (2), the t-values of CSR indext were 3.23 and 3.83, which were both significantly positive at the 1% level of significance. This means that when considering dynamic endogenous effects, the implementation of CSR could still promote the accumulation of knowledge capital and investment in R&D. In Models (3) and (4), the coefficients of Net CSRt were not differed significantly from 0, which again indicates CSR promotion must be implemented over the long term in order to benefit knowledge capital accumulation and R&D investment.

Table 8 CSR and knowledge capital: GMM

Finally, exploring self-selection bias, this study employed the Hausman test and two-stage least square regression (2SLS) to examine the relationships among knowledge capital, CSR, and profitability, the results of which are listed in Table 9. Models (1) and (2) respectively refer to the Hausman tests for knowledge capital and R&D. As shown in Table 3, the values for the residual of Model (1) and Model (4) both differed significantly from 0 at the 1% significance level, which indicates an endogenous relationship among with CSR index, knowledge capital, and R&D. The second-stage regression was performed while taking endogenous relationships into account by examining the impact of knowledge capital and R&D on profitability and firm value. In Models (3) and (4), the coefficients of knowledge capital and R&Dt to ROAt were both significantly negative at the 1% level of significance. In Models (5) and (6), the coefficients of knowledge capitalt and R&Dt versus ROEt were both significantly negative at the 1% level of significance. In Models (7) and (8), the coefficients of Knowledge capitalt and R&Dt to Tobin’s Qt were significantly positive at the 1% and 5% levels of significance, respectively. This implies that when considering endogenous relationships, firms must spend capital expenditures to accumulate knowledge capital and promote R&D, which affects profitability and firm value.

Table 9 CSR and knowledge capital: Hausman test

This study obtained using instrumental variables, GMM, and the Hausman Test to perform robustness tests that the implementing CSR could promote the accumulation of knowledge capital and investment in R&D; however, CSR commitments must be long-term to offer meaningful benefits. The investment of substantial resources in knowledge capital, R&D, or CSR promotion can have a negative impact on profitability; however, this was shown not to deter investors, who remained optimistic about the future competitive advantages of firms, which increased firm value.

5 Conclusions

The accumulation of knowledge capital and investment in R&D are crucial to the core competitiveness of firms. Most previous studies focused on the impact of knowledge capital on firm value and profitability (Phillips and Zhdanov 2013; Gao and Chou, 2015; Chiu et al. 2021). However, some scholars have argued that CSR is one of the critical factors in core competitiveness and profitability (Heal 2005; Vilanova et al. 2009; Groysberg et al. 2011). In this study, I address this gap in relevant research and employ the CSR index to investigate the relationship among CSR, knowledge capital, and profitability.

The empirical analysis revealed a positively significant correlation with CSR, knowledge capital, and R&D, implying CSR engagement can enhance the accumulation of knowledge capital and investment in R&D. In addition, it is important to engage in external CSR (Others), disclose CSR-related information (Information Transparency of CSR), and have third parties authenticate CSR reports (Authentication) to avoid agency problems and greenwashing. The results also found that firms establish internal CSR policies (Policy), environmental protection (Environment), and employee and suppliers’ rights (Employees) to ensure innovative development, the accumulation of knowledge capital, and investment in R&D. The investment of substantial resources in knowledge capital, R&D, or CSR promotion can have a negative impact on profitability; however, this was shown not to deter investors, who remained optimistic about the future competitive advantages of firms, which increased firm value.

This study also employed an instrumental variable, the generalized method of moments (GMM), the Hausman Test (Hausman 1978), and two-stage least square (2SLS) to explore the impact of knowledge capital, R&D, and CSR performance on financial performance and control the effect of endogeneity in robustness. The results also found that after controlling for the endogeneity, CSR can enhance knowledge capital and R&D to strengthen financial performance and firm value. These indicated that CSR engagement can avoid agency problems, shift public focus and greenwashing, and increase R&D efficiency and financial performance.

This research is the most detailed study of CSR, knowledge capital, R&D, and financial performance. These results revealed that the firm accumulates knowledge capital and increases R&D, negatively affecting financial performance. I also observed that CSR engagement can improve the efficiency of knowledge capital and R&D to avoid agency problems and increase financial performance. The empirical analysis serves as a valuable reference for knowledge capital and R&D in CSR engagement around the world, even with the significant contribution of this paper. However, this study was limited to the listing firms in Taiwan. Future research should consider the impact of capital expenditure on CSR or the use of cross-nation samples for examination.