1 Introduction

Notably, renewable energy has continued to retain the spotlight in every climate change debate because solar, wind, hydroelectric, biomass, and thermal power are reputable when it comes to energy production without the global warming effect associated with hydrocarbon fuels (National Geographic 2019). In light of the attribution of the climate change concern with the growing environmental damage globally, policy frameworks that are designed for energy portfolio diversification are being adopted by intergovernmental agencies, governments, and other stakeholders. This further affirms the report that there is a 95% certainty that human activities, especially from the burning of hydrocarbon fuels (conventional energy) such as coal and fossil oil among others, are largely responsible for the global warming issues (National Aeronautics and Space Administration 2020). Considering how climate change is not the only reason that gears the development of renewable energy, there have been consistent debates on the impact of other factors such as the oil and natural gas price, carbon emission certificate vis-à-vis carbon pricing, and financial and economic activities (Aguirre and Ibikunle 2014; Rafiq et al. 2014; Alola and Alola 2018; Ozturk and Dincer 2020; Tugcu et al. 2020; Alola and Saint Akadiri 2021).

In the case of Africa, the continent has portrayed a unique and unusual discussion on both global warming and the energy transition because of its relatively slack progress compared to other continents. Although it is a minor contributor to global greenhouse gas (GHG) emissions and only contributes about 2% of the aggregate global emissions levels, the continent’s GHG emissions is expected to increase to 3% by 2040 (International Energy Agency 2019). The three major energy sectors of the continent, electricity, heat, and transportation, contribute the largest share of Africa’s total GHG emissions. However, the potential of the continent’s renewable energy power has been substantially less harnessed compared to the current and projected power consumption of the continent (International Renewable Energy Agency 2019). With the continent reckoned to be the richest solar resources in the world, only about 5 gigawatts (GW) of solar photovoltaic (PV), which is far below 1% of the global share of solar PV, further signifies the under-utilization of the continent’s renewables (International Energy Agency 2019).

However, with the increasing fall in the renewable technology cost across the continent amidst the abundance renewable sources, Africa’s solar development is expected to reach about 320 Gigawatts (GWs) in 2040, thus making solar the largest source of electricity in the continent after surpassing hydropower and natural gas (International Energy Agency 2019; Africa Renewable Energy Initiative 2019). The report of the International Energy Agency (2019) has further implied that other sources of renewable energy such as wind in Ethiopia, Kenya, Senegal and South Africa, and geothermal in Kenya are increasingly being developed. The importance of further harnessing renewable energy sources in Africa as indicated by the Africa Renewable Energy Initiative (AREI) is hinged on the fact that it improves access to electricity for households and for driving the productive sectors such as the agricultural sector, industrial, transportation, and the micro-, small and medium-scale enterprises. To achieve the expected energy demand in the continent and to reduce losses by about 10%, an investment scale-up in Africa’s electricity sector that primarily focuses on generation and distribution is essential (International Energy Agency 2019).

There exist only a few studies that have examined the factors that are responsible for the development of renewable energy in Africa and Sub-Saharan Africa (Emodi and Boo 2015; Giovannetti and Ticci 2016; Aliyu et al. 2018; da Silva et al. 2018; Salahuddin et al. 2020; Sharif et al. 2020). Specifically, da Silva et al (2018) examined the determinants of renewable energy in Sub-Saharan Africa over the experimental period of 1990–2014. In doing so, the impact of economic development vis-à-vis the real Gross Domestic Product per capita, energy usage, and population growth on renewable energy development has been examined. The study found that both economic development and energy usage contributed to the development of renewable energy during the experimental period while population growth appeared to have restricted the renewable energy development. Similarly, many studies have corroborated that economic growth which translates as income exhibits a significant and positive relationship with renewable energy development (Apergis and Payne 2010; Bilgili and Ozturk 2015; Bhattacharya et al. 2016; Alola and Alola 2018). However, Aguirre and Ibikunle (2014) and Pfeiffer and Mulder (2013), respectively, found that energy use and electricity consumption is negatively linked with renewable energy consumption.

While examining the potential of renewable energy electricity through policy applicability, Carley (2009) opined the important of the population growth rate in the assessment of the electric power capacity in the case of the United States of America. In the investigation, Carley (2009) employed the renewable portfolio standard (RPS) and examined the linkage of RPS policy implementation and the percentage of renewable energy generation across all the states. In view of the agricultural-related endowment in Africa, Rupf et al. (2016) examined the potential of biogas in Sub-Saharan Africa. The study revealed that the sources of biogas in the region include the organic fraction of municipal solid waste (OFMSW), domestic sewage, crop residues, livestock manure, and household feedstocks among others. Similarly, Giovannetti and Ticci (2016) employed the newly updated model of the Land Matrix to examine the relationship between investments in land and the development of biofuels in Sub-Saharan Africa. While the study employed agricultural land which is mainly used for cultivating biofuel crops such as cereals (considering the food-land-energy nexus hypothesis), it was observed that the factors of water resources, regulatory and security quality among others are essential and significant determinants of investment in land for biofuels.

Furthermore, Salim and Shafiei (2014) revealed that population and urbanization are both linked with renewable energy consumption and non-renewable energy consumption in the case of the Organization for Economic Corporation and Development (OECD) countries. The study found that the total population exerts a long-run positive and significant impact on both non-renewable and renewable energy consumption in the panel of the OECD countries. Although the result of the investigation further posited that the impact of the total population on renewable energy consumption is lower than that of the non-renewable energy consumption, the study found there to be a non-significant impact due to population density on renewable energy consumption. On the other hand, population density is observed to have resulted in a decline in non-renewable energy consumption in the panel countries. Importantly, the studies of Poumanyvong et al. (2012) and Salim and Shafiei (2014) found that the increased urbanization from road usage and transportation is responsible for a higher consumption of non-renewable energy especially in high income economies.

Although several studies in addition to the aforementioned have examined the determinant of energy forms or the causal link of energy sources with other variables (Ehrlich and Holdren 1971; Kraft and Kraft 1978; O'Neill et al. 2012; Shahbaz and Lean 2012), the current study potentially closes the existing gap by further incorporating agricultural added value and urbanization in the case of Sub-Saharan countries.

In light of the above motivation, the current study is designed to explore the potential determinants of renewable energy development in Africa. This is while considering the challenges that arise when meeting the low-carbon energy gap in the continent through the adoption of climate actions (SDG-13) and responsible energy consumption (SDG-12) targets. To this end, the current study attempts to examine the effects of real Gross Domestic Product (RGDP), agricultural value-added (AG), urbanization (URB), and electricity consumption (ELE) on renewable energy consumption (REC) for selected Sub-Saharan African economies (including Benin, Botswana, Cameroon, Congo Republic, Cote d’ivoire, Ethiopia, Ghana, Kenya, Mauritius, Nigeria, South Africa, and Zimbabwe). Specifically, on the one hand, agricultural value added has been considered because of the importance of agriculture to the continent since the sector is considered to be the driver of growth and the provider of an enormous capacity for poverty and reduction inequality gap (United Nations 2014). On the other hand, agriculture practices are believed to be a significant source of renewable energy source such as biofuels and at the same time, they contribute to environmental degradation either through land or chemical usage and other agricultural practices (Tubiello et al. 2015). Although the rate of urbanization is not uniform across all of the regions of Africa, increasing the rate of urbanization in West Africa, North Africa, and Southern Africa is significant. By incorporating the agricultural value added and urbanization in the energy model, the current study is poised to project a novel perspective and to close the gap found in the study by Adedoyin et al. (2020).

2 Methodology

2.1 Data presentation

By driving through with the objective of the current study, a handful of variables are employed. Importantly, renewable energy consumption is employed as the dependent variable against the independent variables, specifically the real Gross Domestic Product, agricultural value added, urbanization, and electricity consumption. In Table 1, other necessary information of the variable such as the unit of measurement and the source of the series are further presented.

Table 1 Indicators and unit of measurement.

Furthermore, the descriptive statistics of the series and the correlation between the variables are presented in Table 2. Giving the high standard deviation of the RGDP, the statistics of the variables implies that there is high heterogeneity in the economic development across the Sub-Saharan Africa region. A similar observation was found in the volume of electricity energy consumption in the region. Additionally, except for renewable energy consumption and urbanization, the series is observed to be positively skewed because of the positive tails exhibited by the series. Importantly, there is significant evidence of a correlation between all of the examined variables (see Table 2).

Table 2 Summary statistics and correlation analysis.

2.2 Methodological procedures

2.2.1 Empirical model

Following the studies of Asongu et al. (2020) and da Silva et al. (2018) among related others, the current study further presents a modified model that underpins the relationships between electricity energy consumption (ele) urbanization (urb), renewable energy consumption (rec), gross domestic product per capita (rgdp), and agriculture added value (ag) for the 12 selected African countries. In this case, the current model is uniquely presented as:

$${\text{rec}}_{i,\;t} = f\left( {{\text{rgdp}}_{i,\;t} ,{\text{urb}}_{i,\;t} ,{\text{ele}}_{i,\;t} {\text{ag}}_{i,\;t} e_{i,\;t} } \right)$$
(1)

Therefore, the transformation of the above expression (Eq. 1) is transformed into a natural logarithmic algorithm:

$$\begin{aligned} l{\text{rec}}_{{i,\;t}} = & \alpha + \beta _{1} \ln {\text{rgdp}}_{{i,\;t}} + \beta _{2} \ln {\text{urb}}_{{i,\;t}} + \beta _{3} \ln {\text{ele}}_{{i,t}} \\ & + \beta _{4} \ln {\text{ag}}_{{i,\;t}} + \varepsilon _{{i,\;t}} \\ \end{aligned}$$
(2)

given that t = 1990, … 2014, i = 1, 2, 3, …, 12 and ε is the error term such that εis iiid ~ N (μ, σ2). Also, α and βs are the slope and the response rate of the logarithms of the explanatory variables for each i and t.

2.2.2 The ARDL-pooled mean group (PMG) test

The empirical route of the present study follows four pathways. First, the basic summary statistics and simple correlation analysis that have outlined the measures of central tendencies and measures of dispersion are reported in Table 2. Secondly, the investigation of the stationarity properties of the series was used to ameliorate the spurious analysis. To investigate the long-run equilibrium relationship, Kao’s cointegration in conjunction with Pedroni techniques were employed. Third, the long-run and short-run analysis was examined by the Pool Mean Group Auto Regressive Distributed lag Model methodology simultaneously as advanced by Pesaran et al (1999). As such, the ARDL-PMG estimation employs the cointegration form of the ordinary ARDL model such that Eq. (2) was further estimated through the following expression:

$$y_{i,\;t} = \phi_{i} \;{\text{EC}}_{i,\;t} + \mathop \sum \limits_{j = 0}^{q - 1} \beta_{i,t} {\Delta }\;X_{i,\;t - j} + \mathop \sum \limits_{j = 1}^{p - 1} \lambda_{i,\;j} {\Delta }\;y_{i,\;t - j} + \varepsilon_{i,\;t}$$
(3)

Given that ECi, t = yi, t−1 − Xi, t θ represents the error correction, ϕ is the coefficients of the speed of adjustment and θ is the long-run coefficients such that X is the vector of the independent variables in the models, i.e., X = f (lgdp, lele, lurb, lag).

Further information such as the hypothesis testing of the estimation approach has been omitted here because of space constraints. They are detailed in Pesaran et al. (1999). Moreover, to detect the causality direction among the investigated variables, the current study has explored the work of Dumitrescu and Hurlin (2012).

3 Results and discussion

The current study set out to underpin the determinants of renewable energy consumption in Sub-Saharan African economies, a continent with rich energy dynamics. To achieve this hypothesized claim, a multivariate model was fitted. The first point of call in econometrics modeling is the eyeball testing of the preliminary analysis on how the data fares as in the investigation of the basic summary statistics and correlation analysis as highlighted in Table 2. Subsequently, the stationarity properties of the variables under review were conducted using the Levin et al. (2002), Im et al. (2003), and Fisher-ADF by Maddala and Wu (1999) panel unit root tests as documented in Table 3. The consensus of the entire test is found in the harmony of the mixed order of the integrated outlined variables. The stationarity test is pertinent to avoid the pitfalls of erroneous modeling and analysis. Subsequently, investigating the long-run properties of the series shows there to be a long-run equilibrium relationship between all of the considered variables as rendered in Table 4 using the Pedroni and Kao methodology.

Table 3 Panel unit root tests
Table 4 Pedroni and Kao cointegration results.

The next step was to examine the magnitude of the long and sort run relationships between the variables. In Table 5, the equilibrium relationship has been validated by the Error Correction Term (ECT) showing the speed of adjustment of the variables. The ECT shows the equilibrium exit that the system equalizes by 34.8%. This is statistically significant at (p < 0.01) on an annual basis due to the contributions of electricity consumption, urbanization, economic growth and agricultural value added. Economic growth in SSA increases the consumption of renewable energy in the short run by 0.128% while in the long run, a 1% increase in economic growth dampens the intake of renewable energy consumption by 0.402% at a (p < 0.01) statistically significant level. The current result resonates with the findings of Shah et al (2020) for D-8 countries. This implies that there is still room for more improvement in renewable energy in Africa. The region is mainly driven by the primary sector that is comprised of agricultural activities, mining and crude oil exploration.

Table 5 Result of PMG-ARDL (2, 1, 1, 1, 1).

Furthermore, agriculture has an inverse relationship with the dependent variable while in the long-run, agriculture is positive and elastic. There is a 1% increase in agricultural activities alongside the long-run increase renewable energy by 0.252%. This is quite negligible given how the region is on the trajectory of disentangling its economic growth from pollutant emissions. The results also show that an increase in electricity consumption (from fossil sources) dampens the share of renewable energy utilization in the region. Interestingly, while Olanrewaju et al. (2019) found that oil rents and coal energy sources hamper renewable energy use according to a panel of five most populous and biggest economies in Africa, the study by Akintande et al. (2020) revealed that energy utilization and electricity power demand an increase in renewable energy consumption in the African region. The moderating role of urbanization was also explored as the long-run analysis shows that a high urban population increases the SSA energy consumption by a precise 1% increase in urbanization. This increases the renewable energy consumption by 0.881%. This suggests that the region’s urban population is conscious of the environment and the implications of a pollutant driven economy. However, a related study for the case of Africa by da Silva et al. (2018) offers evidence that such a population impedes renewable energy development.

Table 6 presents the analysis of the causality test. The causality test shows the predictability of the outlined variables among each other over the sample period. SSA is characterized by its primary and large-scale agrarian activities. This is seen in the two-way causality between agriculture and economic growth. This refers to agriculture driven by economic growth and vice versa. This finding is consistent with the findings of Agboola and Bekun (2019). On the contrary, in BRICS as the study by Balsalobre et al. (2019) show, agriculture is seen to promote pollutant emissions. This indicates that agriculture is a good predictor of economic growth. Furthermore, feedback causality is seen to result from urbanization and electricity consumption, i.e both variables Granger causes each other. This implies that high urban growth compels a higher level of electricity consumption. Urbanization and renewable energy consumption have a bi-directional causality flow. However, the increase in the region’s electricity consumption is from non-renewable energy. Additionally, between agriculture and renewable energy consumption is a feedback relationship while a unidirectional causality can be seen between economic growth and renewable energy consumption. These causality analyses reveal the nature of the causality between economic growth and other macroeconomic indicators like urbanization, agricultural value added, electricity consumption, and renewable energy consumption. For instance, the causality seen between economic growth and renewable energy is aligned with the paradigm where the economy is driven by clean energy.

Table 6 Results of the (Dumitrescu and Hurlin 2012) panel causality.

However, this fit requires more actions on the part of both the government administrators and private partnerships. The need for a green economy is being pursued by all continents and Africa is not left out of this, leading to several action plans such as the National Renewable Energy Action Plan (NREAP) and the Renewable Energy Policy (EREP). The ECOWAS Energy Efficiency Policy (EEEP) was also inaugurated in ECOWAS. All of the highlighted programs are in line with the mitigation of climate change action (SDG-13) from fossil-fuel concentration in the energy mix to the promotion of responsible consumption (SDG-12). However, this fit requires more action on the part of both government administrators and private partnership in terms of the commitment to local and international environmental treaties that foster energy efficiency, security, and sustainability at large.

From a policy perspective, given the highlighted revelations, the following counsel were rendered to all stakeholders and energy users and practitioners. (i) First, the SSA region needs to sustain its momentum to further increase the share of renewable energy consumption from the total fossil energy sources. (ii) Second, for the region to achieve fit when it comes to attaining energy efficiency, there is a need for more pragmatic actions to reinforce the commitments. This pragmatic actions of the SSA’s commitment include the national and regional regulatory treaties. Considering that the sustainable development goals (SDGs) incorporate 17 distinct objectives such as tourism, health, and other sector-related concepts, the SSA could further implement energy efficiency policies in every sector of the region’s economy. In line with the implementation of this inclusive policy, the achievement of Vision 2030 by the SSA is almost inevitable.

4 Conclusion

Most economies around the globe are on the edge and working assiduously to achieve their environmental sustainability targets. Sub-Saharan Africa (SSA) is no exception to this phenomenon. This has led most government administrators to disentangle their economic growth trajectory from pollutant emissions. To underpin this objective, the current study explored the theme for selected countries in SSA. The region is known to be more of a primary industry well driven by agriculture, mining, and crude oil exploration and exploitation. The recent study incorporates agriculture, urbanization, and the energy from fossil fuel sources as the determinant of renewable energy in Sub-Saharan African economies.

The empirical findings from this study indicate the long-run equilibrium relationship between electricity consumption, urbanization, agriculture, renewable energy consumption, and economic growth as reported by Pedroni and Kao’s cointegration test over the investigated time span. The long-run regression from the ARDL-PMG shows there to be a statistically inverse significant relationship between economic growth and renewable energy consumption. This pattern is seen in the electricity consumption. These outcomes imply that an increased share of non-renewable energy consumption (dirty energy consumption) dampens the share of renewable energy consumption. This implies that there is need for paradigm shift to cleaner energy technologies. This position is supported by Schwerhoff and Sy (2017) who asserted that the higher consumption of renewable energy will facilitate the attainment of the seven SDG of clean and efficient energy access by 2030. This in turn translates to better welfare for the populace in SSA and other regions. Additionally, the increased urban population is triggering a higher consumption of energy to drive industries like agriculture where there is machinery like tractors and combine harvesters, among other tools. This is supported by the causality analysis where a feedback causality relationship is observed between urbanization and renewable energy consumption, as well as agriculture and economic growth. This means that the urban population in Sub-Saharan African economies is conscious of clean energy.