Introduction

The public health and global economy faced difficulties due to the outbreak of novel severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2), which is responsible for coronavirus disease (COVID-19) (Briz-Redón and Serrano-Aroca 2020). In December 2019, the COVID-19 was initially reported in Wuhan, China. Its common symptoms are cough, fever, fatigue, and shortness of breath. It is generally transmitted between human beings through droplets or physical contact (Xie and Zhu 2020). On March 11, 2020, the World Health Organization (WHO) has officially declared COVID-19 as pandemic because COVID-19 affected more than 200 countries, and accountable for 34,724,785 confirmed cases (World Health Organization (WHO) 2020). In severe cases, COVID-19 causes pneumonia, kidney failure, acute respiratory syndrome, and death (Tosepu et al. 2020).

In Pakistan, the first COVID-19 case was confirmed on February 26, 2020. After that, an increase in COVID-19 cases was observed in Pakistan (Syed and Sibgatullah 2020). The coronavirus confirmed cases till October 04, 2020, were 314,616 with 6513 deaths in Pakistan (Government of Pakistan (GOP) 2020a). The WHO warned that Pakistan might be the next hub of COVID-19 without the implementation of necessary precautionary measures. However, community perception about risk of COVID-19 infection is not satisfactory because the population does not adequately follow the preventive measures. The situation of COVID-19 becomes serious in Pakistan (Fig. 1). The Ministry of Health has proclaimed guidelines for virus control according to the recommendations of WHO (Khan et al. 2020). The governments tried to control the transmission by imposing lockdowns and quarantines due to non-availability of medical treatment (Gupta et al. 2020). The communities have been directed to stay in the home, frequently wash their hands, avoid touching their faces, avoid to visit public places, and maintain 1–2 m distance (social distancing) to control the COVID-19 transmission (Carico et al. 2020).

Fig. 1
figure 1

The situation of COVID-19 in Pakistan (as of October 04, 2020)

The epidemiological dynamics of many infectious diseases depend upon environmental factors (Shi et al. 2020). Dalziel et al. (2018) told that the transmission of viruses was influenced by various factors like humidity, temperature, and population density. The outbreak of SARS was also linked with environmental indicators (Sobral et al. 2020). Epidemiological research revealed the linkages between meteorological indicators and COVID-19 but the findings were not clear (Wu et al. 2020). Literature (Gale et al. 2010; Stott 2016) revealed that climate change was linked with the emergence and spread of infectious diseases. Dry or cold weather was favorable for viral diseases like influenza. The SARS epidemic was reduced due to warm season and finished in July 2003. The COVID-19 was mostly observed in the countries, located in low-temperature regions (Liu et al. 2020). The COVID-19 spread was normally observed in areas having low annual average temperatures (37–63 °F or 3–17 °C). Chinese researchers mentioned the link between humidity, temperature, and COVID-19 outbreak. The COVID-19 spread was lower in warm and humid regions of China. Researchers from Finland and Spain reported that 95% of global infections take place between 2 and 10 °C, and in dry climates. The COVID-19 spread was also reported in hot and humid conditions like Malaysia, Indonesia, and Singapore (Ahmadi et al. 2020).

Meteorological indicators could affect environmental stability, which further influenced the viability of viruses. The humidity and temperature showed a significant impact on COVID-19 spread (Chen et al. 2020). In China, both relative humidity and temperature significantly influenced the transmission of COVID-19 (Wang et al. 2020a). Sajadi et al. (2020) also mentioned the nexus between temperature, humidity, and respiratory viruses. The variations in the temperature and humidity also influenced the COVID-19 mortality (Ma et al. 2020). Prata et al. (2020) stated that it is hypothesized that variations in average temperature could significantly affect the COVID-19. Jahangiri et al. (2020) wrote that ambient temperature could be a crucial transmissibility factor behind COVID-19.

Tosepu et al. (2020) explored the correlation between the COVID-19 pandemic and weather indicators (minimum temperature, maximum temperature, average temperature, and rainfall) in Jakarta, Indonesia. Spearman-rank correlation confirmed a significant correlation between COVID-19 and temperature. In Korea, the transmission of influenza was associated with relative humidity and low temperature. Studies also highlighted that COVID-19 was linked with meteorological factors (Ma et al. 2020). Şahin (2020) explored the linkages between COVID-19, population, and meteorological indicators (temperature, wind speed, dew point, and humidity) in Turkey. The Spearman’s correlation confirmed the highest correlations score for population, temperature, and wind speed. Bashir et al. (2020) revealed the link among climate indicators (average temperature, average humidity, rainfall, air quality, and wind speed) and COVID-19 in New York, USA. Correlation statistics confirmed a significant link between climate conditions and COVID-19.

However, no study explored the association between meteorological indicators and COVID-19 in Pakistan. The contribution of this study is (a) it first time examined the relationship between meteorological indicators and COVID-19 in Pakistan, (b) it first time examined the relationship between meteorological indicators and COVID-19 in four provinces and three administrative units in Pakistan, and (c) it used the generalized models to investigate the impact of average temperature, rainfall, and humidity on COVID-19 cases. Therefore, this study explored the impact of meteorological variables (temperature, average rainfall, and humidity) on COID-19 cases and infection rate.

Methods

Study area

This study was designed to examine the link between meteorological variables and COVID-19 cases in Pakistan. Pakistan ranked among top 20 countries, which were affected by the COVID-19. Pakistan is the 6th most populated country and ranked 36th according to the area in the world. Pakistan is an agriculture-based developing country, having 1629 USD per capita income per annum (Hussain et al. 2018). Pakistan is situated between longitudes 60° E–75° E and latitudes 24° N–37° N (Ali 2018). Pakistan has four provinces such as Punjab, Sind, Khyber Pakhtunkhwa, and Baluchistan; and three administrative units such as Gilgit-Baltistan, Islamabad Capital Territory, and Azad Jammu and Kashmir. Pakistan has 2.08 billion populations, showing 2.4% annual population growth rate. Punjab is most populated province in Pakistan, with 110,012,442 population, 205,344 km2 area, and 445.01/km2 population density. Sindh has 47,886,051 population, 140,914 km2 area, and 392.05/km2 population density. Khyber Pakhtunkhwa has 30,523,371 population, 74,521 km2 area, and 360.93/km2 population density. Baluchistan has 12,344,408 population, 347,190 km2 area, and 37.91/km2 population density. Islamabad capital has 2,006,572 population, 906 km2 area, and 1271.38/km2 population density (Hussain et al. 2018). Pakistani climate shows regional diversity from arid to humid. Pakistan is blessed with the monsoon rainfall in summer and western systems rainfall in winter. The climate of Pakistan showed variations in the temperature (Ali 2018).

Data collection

This study used COVID-19 data (Government of Pakistan (GOP) 2020a) in the case of Pakistan from March 10, 2020, to August 25, 2020. The data of meteorological indicators like temperature (°C) and rainfall (mm) was obtained from the Pakistan Meteorological Department (Government of Pakistan (GOP) 2020b). The humidity (%) data was obtained from World Weather Online (World Weather Online 2020). The infection rate shows the speed of the COVID-19 transmission, which was calculated as (Ahmadi et al. 2020):

$$ \mathrm{Infection}\ \mathrm{Rate}\ \left(\mathrm{IR}\right)=\frac{\mathrm{Number}\ \mathrm{of}\ \mathrm{Infected}\ \mathrm{Persons}}{\mathrm{Days}\ \mathrm{of}\ \mathrm{Infection}\ \left(\mathrm{Outbreak}\right)} $$
(1)

Data analysis

Correlation analysis

The non-parametric tests (Spearman’s and Kendall’s rank correlations) were used to investigate the association between two variables. These tests were computed on ranks and depicted a monotonic association (Hamadeh et al. 2017). Spearman’s rank correlation coefficient was used to investigate the correlation between meteorological variables and COVID-19 cases and infection rate. It used a monotonic function to analyze the association between two variables. Spearman’s rank correlation coefficient is estimated as (Şahin 2020):

$$ {r}_{\mathrm{s}}=1-6\frac{\sum {d}_{\mathrm{i}}^2}{n\left({n}^2-1\right)} $$
(2)

where n shows the number of alternatives, and dishows the gap among ranks of two parameters. The coefficient of Kendall’s rank correlation (τ) was estimated as (Kocsis and Anda 2018):

$$ \tau =\frac{\mathrm{S}}{\mathrm{D}} $$
(3)

Where S shows trend and D shows data pairs using n members of dataset (Kocsis and Anda 2018):

$$ \mathrm{D}=\left(\begin{array}{c}\mathrm{n}\\ {}2\end{array}\right) $$
(4)

Regression analysis

A generalized linear model was found useful to assess the link between COVID-19 cases and different factors (Prata et al. 2020). The generalized additive model (GAM) established a univariate response variable Y, to predictor variables xi. The exponential family of distribution was specified for Y like Poisson, normal, and binomial (Goswami et al. 2020). The relationship between meteorological variables and COVID-19 cases was explored using GAM, to fit equations and splines. The GAM fitted for parametric and nonparametric regression and smoothing. It was used to estimate the linear and nonlinear association between meteorological factors and health indicators (Zhu and Xie 2020). An additive and semi-parametric polynomial model was expressed as (Prata et al. 2020):

$$ \log {y}_{\mathrm{t}}={\beta}_0+{\beta}_1{\mathrm{x}}_{\mathrm{t}}^3-{\beta}_2{x}_{\mathrm{t}}^2+{\beta}_3{x}_{\mathrm{t}}+s\left({\mathrm{AT}}_{\mathrm{t}}\right)+s\left({\mathrm{RF}}_{\mathrm{t}}\right)+s\left({\mathrm{HUM}}_{\mathrm{t}}\right)+{\upvarepsilon}_{\mathrm{t}} $$
(5)

where y shows the COVID-19 cases in Pakistan, its provinces, and administrative units on day t, β0 represents the intercept, s(∙) shows a spline function with two degrees of freedom to control over-fitting (Liu et al. 2020; Wang et al. 2018), β shows the parameter of x, and x shows the days since the first outbreak, AT represents average daily temperature (°C), RF shows the average rainfall (mm), and HUM shows the average humidity per day (%). The explanatory variables were controlled for confounding using expression s(∙). The smoothing spline function could control the effects of confounding factors (Ma et al. (2020). Ma et al. (2020) used GAM to explore the relationship between meteorological variables (temperature and humidity) and COVID-19 death in China. The GAM model used both linear and non-parametric trends to optimize the linear model. However, Prata et al. (2020) mentioned the statistical significance of a linear association between meteorological variables and COVID-19, which was expressed as (Prata et al. 2020):

$$ \log {y}_{\mathrm{t}}={\beta}_0+{\beta}_1{x}_{\mathrm{t}}^3-{\beta}_2{x}_{\mathrm{t}}^2+{\beta}_3{\mathrm{x}}_{\mathrm{t}}+{\beta}_4{\mathrm{AT}}_{\mathrm{t}}+{\beta}_5{\mathrm{RF}}_{\mathrm{t}}+{\beta}_6{\mathrm{HUM}}_{\mathrm{t}}+{\upvarepsilon}_{\mathrm{t}} $$
(6)

A dose-response function f connected several explanatory variables (dose x), with a probability of infection (response f(x)) (Brouwer et al. 2017). The dose-response association was normally expressed graphically and showed different mathematical distributions to express a clear relationship (Sullivan et al. 2005). Mathematically, a dose-response relationship showed the expectation of potential loss as a function of different environmental indicators (Ye et al. 2020). Chuang et al. (2016) used GAM to explore the dose-response association between the daptomycin dose and mortality. In the present study, the GAM was applied to establish a dose-response function, which connected different dose variables (outbreak days, average temperature, rainfall, and humidity), with a probability of COVID-19 infection (response variable).

Li et al. (2019) used the Poisson model to explore the association between total cases and meteorological variables. Poisson regression is a commonly used classical model, which was based upon the classical assumptions. It was further assumed that the dependent variable had Poisson distribution, as the random variable showed a value 0, 1, 2, 3, … n. It explained the distribution of yi or the expected value yi by the explanatory variables xi, as expressed below (Cupal et al. 2015):

$$ \mathrm{E}\left\{{\mathrm{y}}_{\mathrm{i}}|{\mathrm{x}}_{\mathrm{i}}\right\}=\exp \left\{{\mathrm{x}}_{\mathrm{i}}^{\mathrm{T}}\upbeta \right\} $$
(7)

The count data models assumed that the count variable yi for given xi had a Poisson distribution.

$$ \mathrm{P}\left\{{y}_{\mathrm{i}}=y|{x}_{\mathrm{i}}\right\}=\exp \left\{-{\lambda}_{\mathrm{i}}\right\}{\uplambda}_{\mathrm{i}}^{\mathrm{y}}/y!,y=0,1,2,3,\dots \dots \dots \dots \dots \dots \dots $$
(8)

where y! shows y factorial. Substituting the appropriate functional form for λi produced expressions for the probabilities used to construct the log-likelihood function for this model, called the Poisson regression model. The generalized Poisson regression was capable to explain the count data with any type of dispersion. It incorporated both positive and negative correlation between response variables (Consul and Famoye 1992; Famoye 2014). The generalized Poisson regression was beneficial in the presence of over-dispersion (Var(yi) > E(yi)) and under-dispersion (Var(yi) < E(yi)). According to the generalized Poisson distribution, the probability density function of yi was expressed as (Famoye 1993; Maxwell et al. 2018):

$$ {\displaystyle \begin{array}{c}{\mathrm{f}}_{\mathrm{i}}\left({y}_i,{\mu}_i,\upalpha \right)=\left(\frac{\mu_{\mathrm{i}}}{1+\upalpha {\upmu}_{\mathrm{i}}}\right)\frac{{\left(1+\upalpha {y}_{\mathrm{i}}\right)}^{{\mathrm{y}}_{\mathrm{i}}-1}}{{\mathrm{y}}_{\mathrm{i}}!}\exp \left[\frac{\mu_i\left(1+\alpha {y}_i\right)}{1+\alpha {\mu}_i}\right]\\ {}{y}_{\mathrm{i}}=0,1,2,,\dots \dots .\mathrm{and}\ {\mu}_i={\mu}_i\left({x}_i\right)=\exp \left({x}_i\beta \right)\end{array}} $$
(9)

where xishows a (k-1) dimensional vector of covariates such as driving habits, demographic factors, and medication use, and β shows (k-1) dimensional vector of regression parameters. It assumed that:

$$ \mathrm{Mean}:\kern0.5em E\left(\left.{Y}_i\right|x+i\right)={\mu}_i $$
$$ \mathrm{Variance}:\kern0.5em V\left(\left.{Y}_i\right|{x}_i\right)={\mu}_i{\left(1+\alpha {\mu}_i\right)}^2 $$

The generalization of standard Poisson regression was called generalized Poisson regression (Maxwell et al. 2018). This study also used generalized Poisson regression to assess the link between meteorological variables and COVID-19 cases. The empirical analysis was performed using R software, STATA 15, and Eviews 10.

Results and discussion

The trend of COVID-19 and meteorological indicators in Pakistan

Figures 2, 3, 4, 5, 6, 7, 8, 9, 10, and 11 show the trend of meteorological indicators (temperature, rainfall, and humidity), day-wise COVID-19 cases, and total COVID-19 cases in Pakistan from March 10, 2020, to August 25, 2020. Figure 2 shows that the day-wise trend showed a continuous increase in Pakistan up to June 13, 2020. After that, the reduction in the day-wise COVID-19 cases was reported in Pakistan. The COVID-19 cases were 482 on August 25, 2020. However, there were some fluctuations in the day-wise confirmed cases. Figure 3 shows the day-wise cases in provinces and administrative areas. It was cleared that the day-wise increase was more in Punjab and Sindh provinces. It might be due to the higher population and population density in Punjab and Sindh. Figure 4 shows the trend of total COVID-19 cases in Pakistan. It showed a rapid increase in the total COVID-19 cases from March 10, 2020, to June 13, 2020. After that, COVID-19 cases were increased at a decreasing rate. Figure 5 shows total COVID-19 cases in provinces and administrative areas. It is cleared that the total COVID-19 cases were higher in Sindh province followed by Punjab, Khyber Pakhtunkhwa, Islamabad Capital Territory, Baluchistan, Gilgit-Baltistan, and Azad Jammu and Kashmir. It was cleared that Punjab and Sindh provinces were mostly affected by the COVID-19. Figure 6 shows the trend of average temperature in Pakistan. There are fluctuations in average temperature in Pakistan. However, there was an increasing trend in average temperature from March 10, 2020, to May 27, 2020. After that, there was no significant increase in temperature, but it shows fluctuation in average temperature. Figure 7 shows the average temperature in provinces and administrative areas. The average temperature was higher in Sindh province followed by Punjab, Baluchistan, Islamabad Capital Territory, Azad Jammu and Kashmir, Khyber Pakhtunkhwa, and Gilgit-Baltistan. The average temperature also showed fluctuations in provinces and administrative units. Figure 8 shows the trend of average rainfall per day in Pakistan. There was no specific trend in the rainfall per day in Pakistan due to the presence of fluctuations between March 10, 2020, and August 25, 2020. Figure 9 shows the average rainfall per day in provinces and administrative units. Average rainfall per day also showed fluctuations in all provinces and administrative units. However, average rainfall per day showed upward spikes after the COVID-19 outbreak in Pakistan. The trend of humidity (Fig. 10) shows a decreasing trend from March 10, 2020, to June 17, 2020. After that, there was an increasing trend of humidity in Pakistan. Figure 11 shows the humidity in provinces and administrative units. The humidity also showed fluctuations in all provinces and administrative units between March 10, 2020, and August 25, 2020. An increasing trend of humidity was found in Sindh province. However, other provinces and administrative units showed a minor reduction in humidity up to the first week of June 2020. After that, the increasing trend of humidity was observed in provinces and administrative units. However, fluctuations in humidity were also observed in provinces and administrative units.

Fig. 2
figure 2

No. of confirmed cases (day-wise) in Pakistan

Fig. 3
figure 3

No. of confirmed cases (day-wise) in provinces and administrative areas

Fig. 4
figure 4

Total confirmed cases in Pakistan

Fig. 5
figure 5

Total confirmed cases in provinces and administrative areas

Fig. 6
figure 6

The average temperature in Pakistan

Fig. 7
figure 7

The average temperature in provinces and administrative areas

Fig. 8
figure 8

Average rainfall in Pakistan

Fig. 9
figure 9

Average rainfall in provinces and administrative areas

Fig. 10
figure 10

Humidity in Pakistan

Fig. 11
figure 11

Humidity in provinces and administrative areas

Mean of COVID-19 and meteorological variables

Table 1 explores the mean of meteorological indicators (temperature, rainfall, and humidity), daily COVID-19 cases, COVID-19 infection rate, and COVID-19 deaths in Pakistan, its provinces, and administrative units. The mean minimum temperature was more in Sindh followed by Punjab, Baluchistan, Islamabad Capital Territory, Khyber Pakhtunkhwa, Azad Jammu and Kashmir, and Gilgit-Baltistan. During the first 169 days of COVID-19, the highest maximum temperature was reported in Sindh followed by Punjab, Baluchistan, Islamabad Capital Territory, Khyber Pakhtunkhwa, Azad Jammu and Kashmir, and Gilgit-Baltistan. The mean of average temperature was higher in Sindh (32.52 °C) followed by Punjab (28.90 °C), Baluchistan (28.01 °C), Islamabad Capital Territory (26.14 °C), Khyber Pakhtunkhwa (23.66 °C), Azad Jammu and Kashmir (23.47 °C), and Gilgit-Baltistan (19.91 °C). The average rainfall per day was more in Islamabad Capital Territory (4.79 mm) followed by Azad Jammu and Kashmir (4.35 mm), Khyber Pakhtunkhwa (2.81 mm), Punjab (2.40 mm), Sindh (1.02 mm), Baluchistan (0.69 mm), and Gilgit-Baltistan (0.51 mm). The average rainfall in Pakistan was 2.40 mm per day. The average humidity was more in Sindh (65.13%) followed by Azad Jammu and Kashmir (56.30%), Gilgit-Baltistan (50.34%), Islamabad Capital Territory (43.47%), Khyber Pakhtunkhwa (39.10%), Punjab (36.40%), and Baluchistan (32.29%). However, average humidity was 46.15% in Pakistan. The average per-day COVID-19 cases were 1740.21 in Pakistan. Punjab, Sindh, and Khyber Pakhtunkhwa provinces were badly affected due to the COVID-19 outbreak in Pakistan. The infection rate was 1046.99 in Pakistan while it was 368.59 in Punjab, 424.74 in Sindh, 131.42 in Khyber Pakhtunkhwa, 51.39 in Baluchistan, 9.91 in Gilgit-Baltistan, 53.56 in Islamabad Capital Territory, and 7.38 in Azad Jammu and Kashmir. On average, 37.08 deaths per day were reported in Pakistan during this pandemic. The COVID-19 deaths were more in Sindh followed by Punjab and Khyber Pakhtunkhwa.

Table 1 Mean of COVID-19 and meteorological variables

Correlation coefficients between meteorological variables and COVID-19

Tables 2 and 3 show the Spearman’s and Kendall’s rank correlation analysis. The five meteorological variables like temperature (minimum, maximum, average), rainfall, and humidity were used in correlation analysis with total COVID-19 cases (Table 2) and COVID-19 infection rate (Table 3). Both Spearman’s and Kendall’s rank correlation shows the same direction between selected variables. Tosepu et al. (2020) used weather-related indicators in the case of Jakarta. But this study used these variables for the country level (Pakistan) as well as provincial level (Punjab, Sindh, Baluchistan, Khyber Pakhtunkhwa, Islamabad Capital Territory, Gilgit-Baltistan, and Azad Jammu and Kashmir). The results showed that temperature (minimum, maximum, and average) has highest correlation coefficient. Therefore, average temperature is closely linked with the COVID-19 cases. It implies that the COVID-19 cases increased in Pakistan due to an increase in average temperature, which was in line with the results of Tosepu et al. (2020) in the case of Jakarta, Indonesia. A positive correlation was also observed between total cases and average temperature in New York, USA, which was badly affected by COVID-19 (Bashir et al. 2020). Temperature is an environmental factor behind COVID-19 spread in China (Shi et al. 2020). Contrarily, Şahin (2020) reported an increase in COVID-19 cases due to a reduction in average temperature in Turkey. Sobral et al. (2020) also reported a reduction in infections due to an increase in temperature. In past studies, Bi et al. (2007) also reported an inverse correlation between SARS cases and temperature in Beijing and Hong Kong. The diversified results between temperature and COVID-19 cases were due to the fact that the impact of temperature on human health may vary between different regions or countries (Hajat and Kosatky 2010; Sobral et al. (2020). The literature highlighted that influenza and SARS-CoV viruses survived only under specific climatic conditions and their transmission rate was sensitive to increasing temperature (Chan et al. 2011; Jaakkola et al. 2014). Second, correlation between average rainfall and COVID-19 cases was negative and significant in Pakistan, which implies the reduction in COVID-19 cases due to rainfall in Pakistan. However, those findings were not in line with findings of Tosepu et al. (2020) in the case of Jakarta, Indonesia. It seems that weather and COVID-19 behavior was different in Pakistan and Indonesia. Another study (Bashir et al. 2020) showed an insignificant correlation between rainfall and COVID-19 cases in New York, USA. Contrarily to Tosepu et al. (2020), correlation between humidity and the total COVID-19 cases was negative in Pakistan, which implies the reduction in COVID-19 cases due to an increase in the level of humidity in Pakistan. The reduction in COVID-19 cases due to a rise in the level of humidity was also reported in Turkey (Şahin 2020). It means that Pakistan and Turkey showed similarities with respect to COVID-19 and humidity. It was also noted that the absolute value of negative correlation between humidity and COVID-19 cases was higher in Pakistan (0.742) as compared to Turkey (0.317) (Şahin 2020). Moreover, Ma et al. (2020) also indicated a reduction in COVID-19 cases due to higher humidity in China. Chan et al. (2011) pointed out that higher relative humidity eliminated the virus viability, which supported the findings of the present research. Along with environmental factors, population (Zu et al. 2020), population density, medical care (Wang et al. 2020b), people’s endurance, social distancing, and health facilities (Bashir et al. 2020) were also possible reasons behind spread or control of COVID-19. A higher correlation coefficient was observed between temperature (minimum, maximum, and average) and COVID-19 cases for all provinces and administrative units (Punjab, Sindh, Baluchistan, Khyber Pakhtunkhwa, Islamabad Capital Territory, Gilgit-Baltistan, and Azad Jammu and Kashmir). The correlation between rainfall and COVID-19 cases was significant and negative in the case of Khyber Pakhtunkhwa and Baluchistan. It implies that the increase in rainfall was linked with a reduction in COVID-19 cases. A positive correlation was reported between rainfall and COVID-19 cases in Gilgit-Baltistan. In general, humidity had a negative correlation with COVID-19 cases in Punjab, Baluchistan, Khyber Pakhtunkhwa, Islamabad Capital Territory, Gilgit-Baltistan, and Azad Jammu and Kashmir. However, Sindh province showed different behavior due to a positive correlation between humidity and COVID-19 cases. To control the COVID-19, it is required to reduce the infection. The results (Table 3) showed that temperature (minimum, maximum, and average) has highest correlation coefficient. Therefore, average temperature was linked with the infection rate. It implies that the COVID-19 infection increased due to an increase in average temperature. Second, correlation between average rainfall and the COVID-19 infection rate was negative in Pakistan. A negative correlation was observed between humidity and COVID-19 infection rate. This study also explored the correlation between meteorological indicators and the COVID-19 infection rate in the case of provinces. The positive correlation coefficient was observed between temperature (minimum, maximum, and average) and COVID-19 infection for all provinces and administrative units. The correlation between rainfall and the COVID-19 infection rate was significant in Sindh and Azad Jammu and Kashmir. In general, humidity had a negative correlation with COVID-19 cases in all provinces, excluding Sindh. In Sindh province, there was a positive correlation between humidity and COVID-19 infection rate.

Table 2 Correlation between meteorological variables and total COVID-19 cases
Table 3 Correlation between meteorological variables and COVID-19 infection rate

Dose-response relationship using generalized additive model (GAM)

The GAM explored the association between meteorological variables (temperature, rainfall, and humidity) and the COVID-19 cases in Pakistan, its provinces, and administrative units. Figure 12 explains the dose-response link between average temperature and COVID-19 cases using the GAM. Initially, there was a direct association between temperature and COVID-19 cases, but the curve showed a flatter shape when average temperature lies between 25 and 30 °C. The rise in the COVID-19 cases was also observed when average temperature was more than 30 °C. The temperature was positively linked with the COVID-19 cases in Jakarta, Indonesia (Tosepu et al. 2020), and New York, USA (Bashir et al. 2020). In Punjab, the COVID-19-temperature curve showed a positive slope initially, but it was flattered when average temperature was more than 23 °C. There was an inverse link between COVID-19 and temperature in Gilgit-Baltistan, and Azad Jammu and Kashmir. Temperature and the COVID-19 cases were positively associated in Sindh and Baluchistan. In Khyber Pakhtunkhwa and Islamabad Capital Territory, the COVID-19 cases increased when the temperature was low, but there was a reduction in the COVID-19 cases when the temperature was higher. Figure 13 explains the dose-response link between rainfall and COVID-19 cases per day, showed an increase in COVID-19 cases due to rainfall initially, but the curve was flattered when the rainfall was more than 20 mm per day. An insignificant association between rainfall and COVID-19 cases was reported in Jakarta, Indonesia (Tosepu et al. 2020) and New York, USA (Bashir et al. 2020). The dose-response curve between COVID-19 and rainfall was positively sloped in Sindh, Baluchistan, and Khyber Pakhtunkhwa, but it was not much steeper. The curve between COVID-19 cases and rainfall seemed like a flatter curve in Islamabad Capital Territory, Gilgit-Baltistan, and Azad Jammu and Kashmir. Figure 14 explains the presence of an inverse dose-response curve between humidity and COVID-19 cases in Pakistan. The curve was steeper when humidity was more than 70%. The inverse relationship between COVID-19 cases and humidity was also reported in Turkey (Şahin 2020) and China (Ma et al. 2020) because higher relative humidity eliminated the virus viability (Chan et al. 2011). The dose-response curve showed a reduction in COVID-19 cases due to a rise in humidity in Islamabad Capital Territory, Gilgit-Baltistan, and Azad Jammu and Kashmir. The curve was downward sloped between COVID-19 and humidity in Punjab, Baluchistan, and Khyber Pakhtunkhwa, but it showed a positive trend in the presence of a higher level of humidity.

Fig. 12
figure 12

The dose-response curves between average temperature and COVID-19 cases

Fig. 13
figure 13

The dose-response curves between rainfall and COVID-19 cases

Fig. 14
figure 14

The dose-response curves between humidity and COVID-19 cases

Generalized Poisson regression analysis

Table 4 shows the impact of average temperature, rainfall per day, and humidity using time-series generalized Poisson regression in Pakistan, its provinces, and administrative units. Yuan et al. (2006) also used regression analysis to reveal the impact of temperature, wind speed, and relative humidity on SARS transmission. Temperature and humidity were significant factors in the seasonal spread of coronaviruses (Sajadi et al. 2020). Results showed that the increase in the expected log count of COVID-19 cases was 0.024 times for a 1 °C rise in average temperature in Pakistan. It implies that the increase in temperature was favorable to control the COVID-19 in Pakistan. The regression analysis of provincial and administrative units showed that the increase in expected log count of COVID-19 cases was 0.086 times in Sindh, 0.095 times in Khyber Pakhtunkhwa, and 0.156 times in Baluchistan for 1 °C rise in average temperature. The rise in the COVID-19 cases due to an increase in average temperature was also reported in Jakarta, Indonesia (Tosepu et al. 2020), and New York, USA (Bashir et al. 2020). Xie and Zhu (2020) also considered that temperature was a factor in COVID-19 transmission. Wu et al. (2020) described that the increase in new cases was 3.08% for a 1 °C rise in temperature. However, coefficient of average temperature was insignificant in Punjab, Azad Jammu and Kashmir, Islamabad Capital Territory, and Gilgit-Baltistan. The impact of rainfall on COVID-19 cases was insignificant in Pakistan. It implies that the increase in rainfall per day was not a significant factor behind the COVID-19 transmission in Pakistan. The increase in expected log count of COVID-19 cases was 0.019 times in Punjab and 0.020 times in Khyber Pakhtunkhwa for 1-mm increase in rainfall per day. However, coefficient of rainfall was insignificant in Sindh, Baluchistan, Azad Jammu and Kashmir, Islamabad Capital Territory, and Gilgit-Baltistan. On the other hand, a reduction in the expected log count of COVID-19 cases was 0.008 times for a 1% increase in humidity per day in Pakistan. It implies that the increase in humidity was beneficial to stop COVID-19 transmission in Pakistan. The provincial and administrative units also showed that the reduction in expected log count of total COVID-19 cases was 0.015 times in Punjab, 0.018 in Islamabad Capital Territory, and 0.027 times in Azad Jammu and Kashmir for 1% increase in humidity. However, an insignificant link between COVID-19 cases and humidity was observed in Sindh, Baluchistan, Khyber Pakhtunkhwa, and Gilgit-Baltistan. Wu et al. (2020) described 0.85% reduction in COVID-19 cases for a 1% increase in relative humidity. Chan et al. (2011) pointed out that the higher relative humidity eliminated the virus viability, which supported the empirical results. However, some other meteorological indicators (air quality and wind speed) could also affect the transmission of infectious diseases (Chen et al. 2020).

Table 4 Generalized Poisson regression analysis

Conclusions

Public health and the global economy faced huge problems due to COVID-19. This study was designed to investigate the impact of meteorological indicators (temperature, rainfall, and humidity) on total COVID-19 cases and COVID-19 infection rate in Pakistan from March 10, 2020, to August 25, 2020. The correlation analysis implies that the COVID-19 cases increased due to a rise in average temperature in Pakistan, its provinces, and administrative units. The dose-response relationship showed a direct association between temperature and COVID-19 cases but the curve was flattered when average temperature lies between 25 and 30 °C in Pakistan. The increase in COVID-19 cases was also observed when average temperature was more than 30 °C in Pakistan. The results of generalized Poisson regression showed that the increase in the expected log count of COVID-19 cases was 0.024 times for a 1 °C rise in average temperature in Pakistan. Second, correlation between average rainfall and COVID-19 cases was negative in Pakistan. The dose-response curve showed an increase in COVID-19 cases due to rainfall initially but the curve was flattered when the rainfall was more than 20 mm per day. Third, correlation between humidity and the total COVID-19 cases implies the reduction in COVID-19 cases due to an increase in humidity in Pakistan. The dose-response curve between humidity and COVID-19 cases showed the presence of an inverse relationship between humidity and COVID-19 cases in Pakistan. The downward slope curve becomes steeper when humidity was more than 70%. The reduction in the expected log count of COVID-19 cases was 0.008 times for a 1% increase in humidity in Pakistan. It implies that the increase in humidity was beneficial to stop the COVID-19 transmission. This study also had some limitations like (a) total COVID-19 cases also included those Pakistani citizens, which were affected abroad and moved to Pakistan with COVID-19 symptoms, (b) it is also important to include some other factors like virus resistance, population mobility, and immunity, (c) the spread of COVID-19 also depends upon some precautionary measures such as hand wash habits, social distancing, personal hygiene, and use of mask and hand sanitizers.