Introduction

Life expectancy is regarded as an essential indication of a country’s populations public health, and it has also been frequently used by world agencies as a general gauge of the country’s national development (UNDP 2010). Furthermore, the health profile is essential in defining well-being, and the life expectancy is important to determine the quality of life (Lind 2021). Gross disparities in the life expectancy within and between nations provide a serious challenge to the international community, which has regained renewed and broader significance because of the increased political and public concern (Marmot 2005). Life expectancy is defined as the average number of years predicted to reach this age. The life expectancy or the level of living in modern cultures is considered as vital, the longer a country’s population lives, the more evolved the society becomes (WHO 2014). Therefore, the life expectancy is one of the most significant health indicators that influence economic development and societal well-being (Azam and Ahmed 2015; Crimmins and Zhang 2019; Azam 2019; Azam et al. 2019). Furthermore, human and social assets may be built on a solid foundation of the life expectancy. Azam and Awan (2022) noted that sound human health is undeniably a key input for sustainable economic development and prosperity. A healthy labor force certifies higher productivity and, subsequently, higher per head income.

Several recent studies have identified that environmental degradation or CO2 emissions is also an important determinant of the life expectancy (see Murthy et al. 2021; Mahalik et al. 2022; Rahman et al. 2022). According to the World Health Organization (2018), in 2016 global air pollution caused 4.2 million premature deaths, and this number is expected to rise since nine out of ten people live in the areas with unsafe air quality. Environmental deterioration may harm people’s health in various ways. Severe air pollution is linked to an increase in chronic illnesses (for instance lung cancer, heart disease, and asthma) and premature deaths (Pope et al. 2009). Previous research has also found that environmental deterioration increases the ecosystem unpredictability, growing the chances of droughts and floods (Haines et al. 2006). Furthermore, as a result of environmental degradation, significant fluctuations in food production and water quality may occur, contributing to increased mortality, especially among infants and the elderly, along with increase in the vulnerable persons from worse socioeconomic backgrounds. Majeed and Ozturk (2020) found that nations with greater levels of environmental degradation had higher newborn mortality rates and vice versa. Many developing countries ignores the required significant environmental actions. The emerging countries set a lot of pressure on the natural resources (such as water, land, and forests) to achieve faster economic growth, and their increased output results in the larger CO2 emissions and industrial wastes (Raffin and Seegmuller 2014; Kasman and Duman 2015; Sapkota and Bastola 2017).

In the health’s determinants literature, various macroeconomic variables are found to have an impact on health outcomes through different channels. Health indicators, also known as health outcomes, are used to assess a population’s health. Health outcomes are connected to changes in the health that occur as a consequence of measurements or particular healthcare investments or treatments (CIHI 2016). Indicators of health outcomes include life expectancy, under-five mortality rate, maternal mortality rate, and many others. Although health care can be funded in a variety of ways, including public (government spending and public insurance schemes) and private (individual and household out-of-pocket payments, expenditure by non-governmental organizations, and expenditure by other private organizations), public health financing demonstrates the government’s commitment to making healthcare accessible and affordable to its citizens. The government’s expenditure on health is commonly used to assure health finance, and it may be categorized into recurring and capital expenditures on health. The government’s funding on health care has been regularly used in the literature to explain the health outcomes (Bayati et al. 2013; Sede and Ohemeng 2015). The phenomenon of inflation is most often accompanied with an increase in the inclusive price level, lowering the buying power of money. As a result, inflation has an impact on health outcomes by increasing the cost of health care. A high rate of inflation raises the charges of healthcare services, medications, and other health inputs, limiting access to these treatments owing to an inability to pay. This leads to a lack of use of accessible health facilities and services, increasing patronage of quacks, a low level of life, and poor nutrition, among other things, all of which contribute to high death rates. Consumer price index (CPI) and GDP deflator are some of the ways to quantify inflation. Inflation has been used to explain differences in health outcomes by many researchers (Bourne 2009; Imoughele et al. 2014).

Fayissa and Gutema (2008) established a negative association between health expenditure and life expectancy in Sub-Saharan Africa by utilizing the theoretical model proposed by Grossman (1972) and used the random effect regression approach for empirical analysis. Literacy rate, food availability and per capita, decreased alcohol usage, increased urbanization, and lower carbon dioxide emissions, on the other hand, all showed a positive link with the life expectancy. They emphasized to implement prudent policies that impose the marginal efficiency of health services to enhance health outcomes. Bayat et al. (2013) investigated the determinants of life expectancy in the Eastern Mediterranean Region by using GDP per capita, health spending, food production index, employment ratio, education index, measles vaccine coverage rate, urbanization, and carbon dioxide emission as explanatory variables (EMR). They found that GDP per capita, food availability, employment ratio, education, and urbanization had a positive effect on life expectancy, whereas health expenditure, measles, immunization coverage rate, and carbon dioxide emissions had no significant relationship with life expectancy. The health production function was estimated by using the panel data for 21 EMR countries using a fixed-effect model in that study.

In the study Nasreen et al. (2012) explored the effect of wealth disparity on the health of Pakistani people’s and explored that if this effect is influenced by the country’s institutional framework. The study was conducted on the data from 1973 to 2010 using the cointegration and error correction model and discovered that uneven income distribution had a negative impact on people’s health resulting in lowering the life expectancy and increasing the infant mortality rate. However, by establishing an effective institutional system in Pakistan, that detrimental effect might be mitigated. Ali and Audi (2016) studied the impact of income disparity, environmental deterioration, and globalization on Pakistani life expectancy from 1980 to 2015, and their findings imply that wealth disparity and environmental deterioration have a negative impact on the life expectancy. Furthermore, globalization has a favorable influence on Pakistan’s life expectancy. Salehnia et al. (2022) found that CO2 emissions and the democratic process have a negative impact on all the quantiles of life expectancy and that GDP has a negative impact on all the quantiles, although the effects of government service delivery, other liquids consumption, and petroleum showed positive effect on life expectancy in all the quintiles. Rahman et al. (2022) suggested that economic growth has a beneficial effect on the life expectancy. In the sample nations, environmental deterioration is seen as a concern, but health expenditure, clean water, and better sanitation have a beneficial impact on life expectancy. Murthy et al. (2021) used data from 1992 to 2017, to measure the impact of CO2 emissions on life expectancy in the D-8 nations (Turkey, Iran, Malaysia, Pakistan, Egypt, Nigeria, Bangladesh, and Indonesia). The findings revealed that the economic expansion, population growth, and health spending, all have a great and beneficial impact on the life expectancy. However, CO2 emissions showed a considerable and detrimental impact. In Pakistan, Wang et al. (2020) looked at the impact of rising nonrenewable energy use (oil, gas, and coal) pollution, death rates in the context of economic growth, and two frequent illnesses, measles, and TB. They observed that nonrenewable energy (oil, gas, and coal) raises air pollution, as well as the spread of diseases like measles and TB, and so increases mortality.

The central objective of this study is to analyze the impact of economic, demographic, and health related factors which are economic (i.e., inflation, per capita income, education, health expenditure, and food production index), demographic (i.e., education, urbanization, and population growth), and health determinants (i.e., birth rate, death rate, and infant mortality rate) on the life expectancy in Pakistan. To the best of the authors’ knowledge, no study has examined the portfolio of regressors in the context of Pakistan as investigated by this study. Thus, this study contribution are two folds: firstly, this study combines all economic, environmental, demographic, and health determinants of the life expectancy for Pakistan, not explored by the previous researcher. Secondly, this study is an attempt to contribute to policy understandings for the accomplishment of sustainable development (including health sustainability) with reference to Pakistan. Empirical findings of the present study certainly help the management authorities to develop a pollution observing system and bolster environmental laws and policies in Pakistan.

The remainder of this article is organized as follows: “Review of literature” section presents prior theoretical and empirical reviews. “Data description, model construction, and empirical methodology” section deals with the data and empirical methodology. “Discussion on empirical results” section interprets the results. Finally, “Conclusion and policy recommendations” section deals with conclusions of the study.

Review of literature

Grossman’s (1972) depiction of a perfect health model is useful for hypothesizing about the process of health creation. Individuals are taken into account as health makers via they make judgments regarding their practices and whether or not to undertake therapeutic or medical therapy. Lifespans are virtually unaffected as a result of this technique. Budgetary constraints, pattern advantages of the social and cultural contexts, as well as physical and mental health are all factors to be considered and the settings they entail are all causes why people are obligated to construct health in their possibilities. The theoretical health production function proposed by Grossman (1972) is based on the idea that health is determined by a variety of factors, some of which may be induced by the individual, meaning that health can be generated. Secondly, health is classified as a consumption good since it affects people’s utility functions. After all, utility rises in optimum health conditions and as an investment commodity because it is a determinant of the total amount of time available for productive activities that generate income or wealth. To account for the disparity between health as an outcome and medical care as one of numerous inputs into its production, the theoretical home health production function was established. The health production function as “a function that describes the relationship between combinations of medical and non-medical inputs and the resulting output,” and depicts a scenario in which an individual or government produces his or her health (outcome/output) by combining health inputs, which could include a variety of medical and non-medical variables (Wagstaff 1986). The health production function also connects these inputs to outputs, demonstrating how much health may be obtained “from a given quantity of health input, for a given degree of technical knowledge.” The Grossman (1972) model can be deciphered as follows:

$$y=f(X)$$
(1)

In Eq. 1, y is the life expectancy, and X is a vector of diverse inputs to the health production function, including economic, environmental, health, and educational factors. Grossman suggests using the provided model to examine the life expectancy at the micro-level; nevertheless, the X is a vector of variables that may be divided into four categories by Fayissa and Gutema (2005a).

Garfield (1997) examined the health component and found that even when healthcare commodities were not included in the penalties band, negative implications for health infrastructure might arise.

The rise in the whole trading cost products and inputs has an indirect effect. The second factor has to do with government healthcare spending. Since government expenditure is reliant on tax revenue, a drop in tax revenue, along with total economic output, limits government resources and requires governments to cut expenditure on public health services. The third factor has to do with higher import costs and manufacturing costs. Private health services are still available, but at a greater cost, limiting entree to health care for a segment of the population. People who are excluded are frequently low-income and vulnerable. According to Garfield (1997), women and children are the populations most exposed to the detrimental impacts of economic sanctions on the life expectancy. The fourth argument is that the degradation of public infrastructure, particularly the sanitation system, may allow infectious illnesses to spread. Fifth, a lower wage encourages employees to take employment with difficult or harmful working conditions. Sanctions have a negative impact on health in general since they have an impact on citizens’ earnings.

Burke et al. (2015) showed that unfavorable financial shocks can account for up to 20% of HIV prevalence disparities between African nations. Kim (2019) also investigated the link between sanctions and the higher prevalence of infection with HIV in women. As income falls, but so does expenditure on food and clean water, both of which have a demonstrable effect on health. In brief, economic penalties have diverse effects on various socioeconomic groups, with the poor, children, women, and the elderly bearing the brunt of the consequences (Peksen 2011; Allen and Lektzian 2013). World Health Organisation (2019) proposed that sanitation is the most important cause of life expectancy. Poor sanitation leads to the spread of illnesses for instance typhoid, hepatitis A, diarrhea, cholera, and others, all of which reduce the life expectancy. According to this data, inadequate sanitation causes roughly 432,000 deaths per year. Similarly, filthy or polluted drinking water transmits a variety of illnesses which have adverse effect on the life expectancy through infant mortality (Alemu 2017).

Menon-Johansson (2005) examined health and good governance in 199 countries and concluded that better governance via more physicians, better availability of water, and more fair economic distribution improves the health and life expectancy. The empirical findings of Fayissa and Gutema (2005b) showed that lower illiteracy and higher food accessibility index are highly associated with the increased life expectancy during delivery; however, health consumption had a strong negative connection with the life expectancy in 33 SSA countries from 1990 to 2000. Balan and Jaba (2011) revealed that uneducated population, total available readers, total beds in hospitals, and population positively effect the life expectancy while determining factor negative impacted on the life expectancy in Romania from 1970 to 2008. Ali and Ahmad (2014) found that food production has a strong connection with the life expectancy, whereas school enrollment and population development have a significant connection with life expectancy in the Sultanate of Oman from 1970 to 2012. Razzak et al. (2015) found a strong positive effects of health expenditure, gross national income, a healthy life, and good governance on the life expectancy in 40 Asian economies. Life expectancy, in contrast, is negatively connected to infant mortality rate, death rate, and the birth rate. The findings of Felice et al. (2016) study revealed that GDP per capita enhance the life expectancy in Italy and Spain from 1961 to 2008. Emamgholipour and Asemane (2016) concluded that the increasing education and health expenses reduced child death in 27 OECD countries between 1996 and 2012. Wang et al. (2020) found that excessive energy use has a negative influence on the life expectancy as well as the economic growth (Saqib 2018, 2022b). Coal, oil, and gas are Pakistan’s principal energy sources, all of which are harmful to the environment and diminish life expectancy from 1972 to 2017. In their study, Yang et al. (2022a, b) observed that in Beijing City, China, environmental variables like air pollution and green land area are thought to be more effective than socioeconomic ones in determining the life expectancy from 2000 to 2018. The results of Salehnia et al. (2022) study demonstrated that CO2 emissions and the democratic process have a negative influence on the life expectancy in all quantiles, whereas GDP has a negative impact in all quantiles except 0.95 from 2000 to 2018. Mahalik et al. (2022) found a negative relationship between life expectancy and CO2 emissions in 68 emerging developing countries from 1990 to 2017.

The existing literature indicate that there are no or limited studies on the determinants of life expectancy with the particular focus of carbon emissions as a determinant of life expectancy, which need more exploration.

Data description, model construction, and empirical methodology

Data and variables

To examine the factors affecting the life expectancy in Pakistan with a special focus on carbon emissions (CO2 emissions) on the life expectancy from 1975 to 2020. The data has been obtained from the World Development Indicators (WDI), latest survey (see Table 1).

Table 1 Data variables and sources

Model construction

To explore the factors affecting life expectancy in Pakistan with a special focus on CO2 emissions, we specified the following multivariate regression model which was also used by many erstwhile studies (Fayissa and Gutema 2008; Ali and Ahmad 2014; Razzak et al. 2015; Razzaq et al. 2020; Razzaq et al. 2021a, b; Saqib 2022a; Saqib 2022c; Felice et al. 2016; Wang et al. 2022; Salehnia et al. 2022; Mahalik et al. 2022; Yang et al. 2022a, b; Zhang et al. 2022; Sharif et al. 2022), and can be expressed as:

$${{LEX}_{t}=\beta }_{0}+{\beta }_{1}{CO}_{2t}+{\beta }_{2}{PCI}_{t}+{\beta }_{3}{FPI}_{t}+{\beta }_{4}{POPG}_{t}+{\beta }_{5}{BR}_{t}+{\beta }_{6}{DR}_{t}+{\beta }_{7}{IMR}_{t}+{\beta }_{8}{HE}_{t}+{\beta }_{9}{INF}_{t}+{\beta }_{10}{EDU}_{t}+{\mu }_{t}$$
(2a)

In Eq. 2a, LEX, CO2, PCI, FPI, POPG, BR, DR, IMF, HE, INF, and EDU represent life expectancy, carbon emissions, per capita income, food production index, population growth, birth rate, death rate, infant mortality rate, inflation, and education, respectively, and \({\mu }_{t}\) = error term, the subscript (t = 1………. t) indicates the period. The \({\beta }_{0}\) is the intercept, while \({\beta }_{1} \mathrm{to} {\beta }_{11}\) are the slope of the respective independent variables. To overcome the problem of data sharpness and heteroscedasticity, we transformed the data into logarithm (see Hossain 2011; Zafar et al. 2021).

Pesaran et al. (2001) developed the autoregressive distribution lag technique (ARDL) as a cointegration test to confirm the long-run relationship between the variables. In comparison to traditional methods, the ARDL approach provides significant advantages. This method yields reliable estimates in all stationary situations, including I(0) or I(1), and mixed order. Equation (4) may be shown using ARDL in the following way:

$$\begin{array}{l}{\Delta LnLEX}_t=\beta_0+\beta_1{LnLEX}_{t-1}+\beta_2{LnCO}_{2t-1}+\beta_3{LnPCI}_{t-1}+\beta_4{LnPOPG}_{t-1}+\beta_5{LnBR}_{t-1}+\\\beta_6{LnDR}_{t-1}+\beta_7{LnIMR}_{t-1}+\beta_8{LnHE}_{t-1}+\beta_9{LnINF}_{t-1}+\beta_{10}{LnEDU}_{t-1}+\\\sum\limits_{i=1}^P\alpha_1{\Delta LnLEX}_{t-1}+\sum\limits_{i=0}^P\alpha_2{\Delta LnCO}_{2,t-1}+\sum\limits_{i=0}^P\alpha_3{\Delta LnPCI}_{t-1}+\sum\limits_{i=0}^P\alpha_4{\Delta LnPOPG}_{t-1}+\\\sum\limits_{i=0}^P\alpha_5{\Delta LnBR}_{t-1}+\sum\limits_{i=0}^P\alpha_6{\Delta LnDR}_{t-1}+\sum\limits_{i=0}^P\alpha_7{\Delta LnIMR}_{t-1}+\sum\limits_{i=0}^P\alpha_8{\Delta LnHE}_{t-1}+\\\sum\limits_{i=0}^P\alpha_9{\Delta LnINF}_{t-1}+\sum\limits_{i=0}^P\alpha_{10}{\Delta LnEDU}_{t-1}+\mu_t\end{array}$$
(2b)

Using Eq. 2b, the null hypothesis is as follows: \({H}_{0}:{\beta }_{1} \mathrm{to} {\beta }_{10}=0\).

Econometric strategy

Augmented Dickey-Fuller (ADF) test

The augmented Dickey-Fuller (ADF) is a test which is used by Dickey and Fuller (1979) to estimate the relationship of the stationary feature. The ADF (augmented Dickey-Fuller) test is based on the following equation:

$${\Delta Y}_{t}={\alpha }_{0}+{\alpha }_{1}{Y}_{t-1}+\sum\nolimits_{j=1}^{k}{d}_{j}{\Delta Y}_{t-j}+{\upepsilon }_{t}$$
(3)

In Eq. 3, \(\Delta\) is first difference operator, \({Y}_{t}\) is the dependent variable, the subscript t represents the time series data, and \({\alpha }_{0}\), \({\alpha }_{1}\), and \({d}_{j}\) represent the constant, slope of first lag of the dependent variable without difference, and slope of lags of the dependent variable. The superscript \(k\) is the optimum number of lags of the dependent variable. The variable is said to be stationary, if the coefficient \({\alpha }_{1}\) value is smaller than one.

ARDL bounds testing

Equations 4 and 5 show the unrestricted error correction models used in the ARDL bounds test framework in terms of intercept or trend. In the framework described in both equations, the ARDL bounds cointegration test is carried out. These equations are estimated with ordinary least squares (OLS).

$$\Delta L{Y}_{t}={a}_{0}+{a}_{1}t+\sum\nolimits_{i=1}^{m} {\alpha }_{2i}\Delta L{Y}_{t-i}+\sum\nolimits_{i=0}^{n} {a}_{3i}\Delta L{X}_{t-i}+{a}_{4}L{Y}_{t-1}+{a}_{5}L{X}_{t-1}+{\mu }_{1t}$$
(4)
$$\Delta L{X}_{t}={\beta }_{0}+{\beta }_{1}t+\sum\nolimits_{i=1}^{m} {\beta }_{2i}\Delta L{X}_{t-i}+\sum\nolimits_{i=0}^{n} {\beta }_{3i}\Delta L{Y}_{t-i}+{\beta }_{4}L{X}_{t-1}+{\beta }_{5}L{Y}_{t-1}+{\mu }_{2t}$$
(5)

Δ is the first difference operator and represents the residual term that is expected to be well behaved (serially independent, homoskedastic, and normally distributed). All coefficients are non-zero, except \({a}_{4}\) and \({\beta }_{4}\). Short- and long-term dynamic coefficients are represented by the parameters \({\alpha }_{2i}\) and \({a}_{3i}\), respectively. The \({a}_{0}\) and \({\beta }_{0}\) are drift components; \({\mu }_{1t}\) and \({\mu }_{2t}\) are white noise.

Johansen cointegration test

There are many methods for determining cointegration, such as the Engle and Granger (1987) test based on residuals and the Johansen (1991, 1992) test based on maximum likelihood. Many factors, such as economic crises, changes in institutional structures, policy shifts, regime shift war, and other drivers of structural change in developing economies necessitate that all variables be incorporated in the same order in these systems (Kim 2004; Perron 1989, 1997). The following equation summarizes the Johansen’s cointegration test:

$${Z}_{t}=A{Z}_{t-1}+\dots +{A}_{n}{Z}_{t-n}+B{x}_{t}+{\epsilon }_{t}$$
(6)

Variable \({x}_{t}\) is the non-random variable in Eq. 6, while error correction term \({\epsilon }_{t}\) is part of the Zt independent and dependent variable vector. When dealing with tiny samples, Pesaran et al. (2001) devised the autoregressive distributive lag model (ARDL bounds testing technique to cointegration); no matter what sequence of integration is used, ARDL is still applicable.

Robustness analysis test

It is common in statistics to think that the empirical and normal distributions are asymptotically close to each other. The skewness and kurtosis statistical coefficients are used in the JB-test (Jarque and Bera 1980). The JB-test is defined as in Eq. 7 for N individuals:

$$\mathrm{JB}=\frac{N}{6}\left({W}^{2}+\frac{(K-3{)}^{2}}{4}\right)$$
(7)

where \(W=\frac{{\mu }_{3}}{{\mu }_{2}^{3/2}}\) is the skewness \(K=\frac{{\mu }_{4}}{{\mu }_{2}^{2}}\) is the kurtosis.

The study also calculated a bias adjusted LM statistic. The most widely used cross-sectional dependence diagnostic is the Lagrange multiplier (LM) test statistic (Breusch and Pagan 1979). Equation 8 for LM statistic for dependency is as follows under the null hypothesis:

$$LM=\sum\nolimits_{i=1j=i+1}^{N-1} \sum\nolimits_{ij}^{N} {\widehat{\rho }}_{ij}^{2}\to {\chi }^{2}\frac{{N}_{(N-1)}}{2}$$
(8)

Breusch-Pagan LM’s standard test statistic is inadequate for testing in large populations, as has long been proven. According to Pesaran (2021), this issue may be solved by using an updated version of the LM statistic, as demonstrated in Eq. 9:

$$L{M}_{S}=\sqrt{\frac{1}{N(N-1)} } \sum\nolimits_{i=1j=i+1}^{N-1} \sum\nolimits_{ij} \left({T}_{ij}{\widehat{\rho }}_{ij}^{2}-1\right)\to N(\mathrm{0,1})$$
(9)

The conditional volatility exhibits a time-varying phenomena, which the ARCH test identifies. In Eq. 10, the ARCH effect may be traced back to time-varying conditional volatility.

$${\sigma }_{t}^{2}=E\left[{\left({x}_{t}-{\overline{x} }_{t}\right)}^{2}\right]=E\left[{x}_{t}^{2}\right]-{\overline{x} }_{t}^{2}$$
(10)

\({\sigma }_{t}^{2}\) is conditional variance and \({\overline{x} }_{t}\) is conditional mean.

Stability was ensured by using Ramsey RESET. The Ramsey regression equation specification error test (RESET) is a general linear regression model specification test. Non-linear combinations of fitted values are tested to see if they help explain the response variable as mentioned in Eq. 11 (Ramsey 1969).

$$y=\alpha x+{\gamma }_{1}{\widehat{y}}^{2}+\cdots +{\gamma }_{k-1}{\widehat{y}}^{k}+\varepsilon$$
(11)

Granger causality analysis test

The linear model provided by Dumitrescu and Hurlin (2012) to assess panel causality is presented in Eq. 12:

$${Y}_{i,t}={\alpha }_{i}+\sum_{k=1}^{K} {\gamma }_{i}^{(k)}{Y}_{i,t-k}+\sum_{k=1}^{K} {\beta }_{i}^{(k)}{X}_{i,t-k}+{\varepsilon }_{i,t}$$
(12)

Discussion on empirical results

Descriptive statistics

Table 2 shows that the mean value of life expectancy, CO2 emissions, per capita income, food production index, population growth, birth rate, death rate, infant mortality rate, health expenditure, inflation, and education is 4.12, − 0.40, 6.68, 4.32, 0.96, 3.57, 2.24, 4.48, 1.22, 2.01, and 3.28, respectively, while the standard deviation of life expectancy, CO2 emissions, per capita income, food production index, population growth, birth rate, death rate, infant mortality rate, health expenditure, inflation, and education is 0.06, 0.33, 0.26, 0.45, 0.16, 0.15, 0.22, 0.27, 0.75, 0.49, and 0.30, respectively. Finally, the Jarque–Bera statistic accepts the null hypothesis of normal distribution, which shows that all variables are normally distributed except birth rate.

Table 2 Descriptive statistics

Unit root test results

Unit roots of all the series are tested by applying ADF and Zivot and Andrews (2002) structural break unit root test. The findings of the ADF test are given in Table 3. The variables CO2 emissions, birth rate, death rate, and inflation are stationary at level, while life expectancy, per capita income, food production index, population growth, infant mortality rate, health expenditure, and education are stationary at first difference.

Table 3 ADF test results

The findings of the Zivot and Andrews (2002) structural break unit root test are given in Table 4; the variables life expectancy (LEX), CO2 emissions, per capita income, food production index, population growth, death rate, infant mortality rate, health expenditure, and inflation are stationary at level, while death rate is stationary after first difference. So there is a mixed order of data stationarity.

Table 4 Zivot and Andrews (2002) structural break unit root test

ARDL bounds testing

It is evident from Table 5 that the estimated value of the ARDL bound test, the lower and upper bound values are at 1% level of significance (2.41 and 3.61). So the F-statistic (459.8562) is greater than the upper bound, which supports the rejection of the null hypothesis of no cointegration among the variables (Pesaran et al. 2001).

Table 5 Results of ARDL bound test

Johansen cointegration test results

Table 6 further demonstrates that at a 1% level of significance, estimates of the Johansen cointegration test, both trace and eigen value test statistics suggest 10 cointegrated equations among the variables. The denial of H0 that there is no cointegration is supported by both the Bounds and Johansen cointegration tests. Finally, both test statistics show that the variables have a long-term association.

Table 6 Results of Johansen cointegration test

Long-run and short-run ARDL estimation results

Table 7 shows the ARDL estimates where the coefficient of CO2 emissions is negative which reveals that 1% rise the CO2 emissions will reduce life expectancy by 0.046395%. Thus, environmental conditions like increased emissions of greenhouse gasses, poor air quality, air pollution, congestion, poor sanitation, lack of basic amenities, among others exert a considerable impact on the health outcomes. The finding are consistent with the finding of Ali and Audi (2016) and Rahman et al. (2022) and contrast with the findings by Ali and Ahmed (2014), Bayati et al. (2013) and Delavari et al. (2016). The coefficient of per capita income is also positive; it shows that 1% surge in the per capita income will raise the life expectancy by 0.001144%. Thus, when the per capita income of the people rises, the income of an individual or household is believed to affect health outcomes since higher levels of income permit increased expenditure in health optimizing activities, improved standards of living and housing conditions, adequate nutrition, access to, and consumption of high-quality goods and services which influence health positively. This result corroborates previous studies including Bayati et al. (2013), Sede and Ohemeng (2015), Luo and Xie (2020), and Wang et al. (2020). The estimated coefficient of food production index is negative which reveals that 1% rise in the food production index will reduce the life expectancy by 0.010727%; therefore, the Pakistani food quality is not good and mostly not nutrient. Further, the long-run ARDL estimates reveal that population growth has a positive effect on the life expectancy. More specifically, a 1% surge in the population growth will prolong the life expectancy by 0.008288 percentage points. The coefficient of birth rate has a positive effect on the life expectancy, which shows that 1% rise the birth rate will surge the life expectancy by 0.466607%. The positive sign of birth rate is not true theoretically; thus, a higher birth rate is expected to negatively affect the life expectancy. The coefficient of death rate is negative which reveals that 1% rise the death rate will reduce the life expectancy by 0.911756%. Thus, on the one hand, a low mortality rate indicates low population growth, and low population growth indicates a low reliance ratio and longer life expectancy, while on the other hand, a high death rate indicates a low dependency ratio and lower life expectancy. The coefficient of infant mortality rate is positive which reveals that 1% rise the infant mortality rate will surge the life expectancy by 0.178382%. A low infant mortality rate in a country leads to the high life expectancy.

Table 7 The ARDL estimates

The coefficient of health expenditure is positive which reveals that 1% rise in the health expenditure will raise the life expectancy by 0.000215% (Table 6). Thus, people are spending more on their health-related concerns as their per capita health expenditure rises. Spending more on health-related concerns raises people’s living standards and hence their life expectancy, as the same finding of Martín Cervantes et al. (2020) and Uddin (2021). The coefficient of inflation is positive and statistically significant, which indicates that a 1% increase in inflation will reduce the life expectancy by 0.002072%. The reason for the negative effect on life expectancy is that inflation affects health outcomes through the cost of health services. A high rate of inflation raises the cost of healthcare services, medications, and other health inputs, preventing people from using these services because they cannot afford them. This result is consistent with the finding of Ali and Ahmad (2014). The coefficient of education is positive which reveals that 1% rise in the education will raise the life expectancy by 0.02002%. Thus, people with a higher level of education are better able to cope with the adversity in life, and they are far more concerned with their health and a healthy lifestyle. These results are consistent with the findings of Ali and Ahmad (2014), Bayati et al. (2013), and Sede and Ohemeng (2015).

Table 6 also shows the short-run ARDL estimates. The short-run coefficient of CO2 emissions, per capita income, population growth, death rate, health expenditure, and education have negative effect on the life expectancy. The examined results show that 1% surge in the CO2 emissions, per capita income, population growth, death rate, health expenditure, and education will reduce the life expectancy by 0.001037%, 0.00029%, 0.00284%, 0.24211%, 0.0174%, 1.40E − 05%, and 4.55E − 05%, respectively. Moreover, the coefficient of food production index, birth rate, and inflation have positive effect on the life expectancy. The examined results show that 1% surge in the food production index, birth rate, and inflation will raise the life expectancy by 0.000169%, 0.115826%, and 3.78E − 05%, respectively. The ECM coefficient value was found to support the theory (with a negative sign) and found 0.028482% annual convergence from short-run to long-run equilibrium for the selected variables.

ARDL diagnostic analysis

As shown in Table 8, ARDL diagnostic tests are used to investigate the life expectancy models’ validity, reliability, and efficiency. Autocorrelation and heteroscedasticity are not a problem in the ARDL model, according to diagnostic tests. The Jarque–Bera and Ramsey RESET tests for model normality and stability are also used to determine whether the model is normally distributed and stable. The estimates show that the model is stable and normally distributed. Tests of the cumulative sum (CUSUM) and cumulative sum of square (CUSUMsq), which show the difference between long-run and short-run coefficients, also confirmed model stability. The dependability of policy replication based on the outcomes across the sample period is dependent on parameter stability. Because the red line comes between crucial boundaries (green and blue lines represent a 5% level of significance), both Figs. 1 and 2 depict that the life expectancy models (short-run and long-run) were adequately specified. This implied that both model parameters are devoid of flaws and generate consistent results.

Table 8 Robustness analysis
Fig. 1
figure 1

The cumulative sum of the recursive residual plot

Fig. 2
figure 2

The cumulative sum of the square of the recursive residual plot

Robustness checks

We further employed FMOLS and DOLS to measure the robustness of the outcome of long-term estimates of the ARDL approach. The results of these two tests are illustrated in Table 9. As per the findings, there is a negative and significant long-term association between CO2 emissions, food production index, death rate, and inflation have negative effect on life expectancy, while the per capita income, population growth, birth rate, infant mortality rate, health expenditure and education have positive effect on life expectancy. These experiments yielded identical results to the prior ones, demonstrating the consistency and robustness of ARDL technique findings.

Table 9 Robustness checks

Granger causality analysis test results

Granger causality analysis are given in Table 10. The estimates reveal that there is a bi-directional causality relationship between death rate and the life expectancy, death rate and per capita income, death rate and birth rate, infant mortality rate and birth rate, health expenditure and death rate, education and CO2 emissions.

Table 10 Granger causality test analysis

Moreover, the estimates of Granger causality show that there are uni-directional causality exists between food production index and life expectancy, life expectancy and population growth, life expectancy and birth rate, life expectancy and infant mortality rate, life expectancy and education, inflation and per capita income, inflation and infant mortality rate, per capita income and food production index, per capita income and birth rate, per capita income and infant mortality rate, per capita income and health expenditure, per capita income and education, birth rate and food production index, death rate and food production index, food production index and health expenditure, food production index and CO2 emissions, food production index and education, health expenditure and birth rate, CO2 emissions and birth rate, education and birth rate, infant mortality rate and death rate, CO2 emissions and death rate, education and death rate, health expenditure and infant mortality rate, education and infant mortality rate.

Furthermore, the estimates of Granger causality shows that there are no causality exists between population growth, inflation and birth rate, inflation and death rate, inflation and health expenditure, inflation and CO2 emissions, education and inflation, per capita income and population growth, per capita income and CO2 emissions, population growth and food production index, infant mortality rate and food production index, population growth and birth rate, population growth and death rate, population growth and infant mortality rate, population growth and health expenditure, population growth and CO2 emissions, population growth and education, CO2 emissions and infant mortality rate, CO2 emissions and health expenditure, education and health expenditure.

Conclusion and policy recommendations

The main objective of this empirical study is to examine the impact of carbon emissions, per capita income, food production index, population growth, birth rate, death rate, infant mortality rate, inflation, and education on the life expectancy in Pakistan from 1975 to 2020. The unit root test reveals that all variables are of the mixed order of stationarity. As a result, we used the ARDL cointegration technique to quantify the concern variables’ long-run and short-run elasticities. The long-run relationship between series is confirmed by the ARDL bound and Johansen cointegration tests. The long-run estimates of ARDL, FMOLS, and DOLS reveal that per capita income, population growth, birth rate, infant mortality rate, health expenditure, and education have a positive effect on the life expectancy, while inflation, food production index, death rate, and carbon emissions have a negative effect on the life expectancy. Moreover, the short-run estimates of ARDL reveal that per capita income, urbanization, population growth, health expenditure, and education have positive effect on the life expectancy, while inflation, food production index, death rate, infant mortality rate, and carbon emissions have negative effect on the life expectancy in Pakistan. Moreover, Granger causality results reveal that bi-directional causality exist between death rate and the life expectancy. Moreover, uni-directional causality exists between food production index and life expectancy, life expectancy and population growth, life expectancy and population growth, life expectancy and infant mortality rate, life expectancy and education.

The empirical findings of this study provide some policy recommendations for Pakistan to achieve long-term healthy population. Government intervention is needed to boost food production by giving subsidies to the agricultural sector, which would encourage farmers to produce more of the basic food grains that low-income people consume. Given that environmental pollution has a detrimental effect on the life expectancy, environmental pollution regulations must be adopted and implemented. It is equally important to invest in human resources to improve health. To enhance health outcomes, the government should prioritize the hiring of more trained health workers in the country’s health sector. Moreover, macroeconomic stabilization measures must be implemented to contain growing costs, promote job possibilities, and aid the formation of small and medium-sized firms. Furthermore, individuals will be abled to afford proper nourishment, improve their living conditions, lower their reliance ratio, satisfy their health-care demands, and expand their revenue earning windows as a result. Policymakers needs to formulate policies that minimize carbon emissions and thereby promote public health and thereby productivity. Similarly, the budget allocation needs to be increased on health care to achieve the ultimate agenda of sustainable development and the well-being of the society.