SORT 42 (1) January-June 2018, 3-26DOI: 10.2436/20.8080.02.6610.2436/20.8080.02.50 Using a Bayesian change-point statistical model with autoregressive terms to study the monthly number of dispensed asthma medications by public health services J.A M. de Queiroz1,2, D.C. Aragon3, L.M. de Mello4, I.T.S. Previdelli2 and E.Z. Martinez4,∗ Abstract In this paper, it is proposed a Bayesian analysis of a time series in the presence of a random change-point and autoregressive terms. The development of this model was motivated by a data set related to the monthly number of asthma medications dispensed by the public health services of Ribeir˜ ao Preto, Southeast Brazil, from 1999 to 2011. A pronounced increase trend has been observed from 1999 to a specific change-point, with a posterior decrease until the end of the series. In order to obtain estimates for the parameters of interest, a Bayesian Markov Chain Monte Carlo (MCMC) simulation procedure using the Gibbs sampler algorithm was developed. The Bayesian model with autoregressive terms of order 1 fits well to the data, allowing to estimate the change-point at July 2007, and probably reflecting the results of the new health policies and previously adopted programs directed toward patients with asthma. The results imply that the present model is useful to analyse the monthly number of dispensed asthma medications and it can be used to describe a broad range of epidemiological time series data where a change-point is present. MSC: 62P10, 62F15, 62M10, 37M10. Keywords: Time series, regression models, Bayesian methods, change-point model, epidemiological data. *e-mail:
[email protected] 1Instituto Federal de Educac¸˜ao, Ciˆencia e Tecnologia do Paran´a (IFPR), Jacarezinho, Brazil 2Master Program in Biostatistics, Department of Statistics, State University of Maring´a(UEM),Maring´a, PR, Brazil 3Department of Pediatrics, Ribeir˜ao Preto Medical School, University of S˜ao Paulo (USP), Ribeir˜ao Preto, SP, Brazil 4Department of Social Medicine, Ribeir˜ao Preto Medical School, University of S˜ao Paulo (USP), Ribeir˜ao Preto, SP, Brazil. Received: April 2017 Accepted: January 2018
4Using a Bayesian change-point statistical model with autoregressive terms to study... 1. Introduction In many situations, epidemiological data come in the form of time series. Disease notifications, hospitalizations due to a specific disease and mortality rates over a given time interval are examples of variables which can be studied as time series. Statistical models are useful to describe patterns of these series, such as temporal trends and seasonal fluctuations. These models can be also used to predict future observations after observing a series of longitudinal data, thus supplying information to aid in the surveillance and management of events of public health interest. Change-point models (Jensen and Lautkebohmert, 2007; Lee, 2010) have been increasingly used in a broad spectrum of applications, such as in econometrics (Hackl, 2012), medicine (Ghosh and Vaida, 2007) and environmental studies (Achcar et al., 2010; Achcar, Rodrigues and Tzintzun, 2011). These models are statistical tools used in practical problems where a random variable indexed by time has modified their behaviour at one or more time instants. Thus, these models are useful when the interest of the analyst lies in determining whether the observed time series is homogeneous over the time interval. As an example, Achcar et al. (2008) considered a change-point analysis for the incidence of tuberculosis cases in New York City from 1970 to 2000, when the number of cases of the disease presented three trends. In the first period of time, the trend of declining incidence was probably associated with good control programs. In the second period, there were increasing incidence rates, and in the third period there was a new trend of declining rates. Modern Bayesian methods of inference by using Markov Chain Monte Carlo (MCMC) techniques have been used to fit time series data in the presence of one or more change-points (Achcar and Loibel, 1998; Barry and Hartigan, 1993; Carlin, Gelfand and Smith, 1992; Dey and Purkayastha, 1997; Lavielle and Lebarbier, 2001), including multiple change-point models where the number of change-points is unknown (Chib, 1998; Fearnhead, 2006). The present article introduces a single Bayesian model for change-point detection including autoregressive terms to be applied to the monthly number of asthma medications dispensed by the public health services of Ribeir˜ao Preto, Southeastern Brazil. Climatic variables are included as independent variables. 2. Methods 2.1. Field of study and dataset The present study is part of a larger research on dispensation of medications to treat pulmonary diseases in the public health services of Ribeir˜ao Preto, a city located in the northwest region of the State of S˜ao Paulo, Brazil. Ribeir˜ao Preto is ranked the eighth largest city in the State of S˜ao Paulo, with about 600 thousand inhabitants (IBGE census data, available from www.censo2010.ibge.gov.br/sinopse/). The city belongs to the health coverage area of the XIII Regional Health Department of the Health Secretariat
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 5 of the State of S˜ao Paulo, being considered a regional health care centre reference for interventions of medium and high complexity and attending more than 1.2 million people, of which approximately 62% depend exclusively on the Brazilian National Health System (SUS) (Bittar, Mendes and Magalh˜aes, 2011). The public healthcare network in Ribeir˜ao Preto is composed by municipal, state and philanthropic services, involving 36 pharmacies providing pharmaceutical care according to the National Drug Policy guidelines (GM Ordinance number 3916 of November 30th, 1998) and currently offering to the population over 260 medications indicated for the treatment of various diseases, including asthma. Table 1: Monthly data on the number of dispensed medications (salbutamol sulfate tablets of 2 mg) in Ribeir˜ao Preto, Brazil, from February 1999 to December 2011. Year Jan. Feb. Mar. Apr. May. Jun. Jul. Aug. Sep. Oct. Nov. Dec. 1999 2,376 2,900 1,699 2,066 4,329 5,486 5,651 7,732 5,505 4,267 3,843 2000 6,855 7,809 7,659 6,386 6,822 8,297 5,936 8,255 6,171 7,119 4,980 7,523 2001 9,563 9,269 9,605 10,150 11,867 10,482 11,718 12,412 9,183 13,667 12,046 9,150 2002 10,641 11,975 10,651 6,089 13,843 15,336 16,418 15,401 12,518 12,960 11,295 13,100 2003 11,756 5,043 2,057 9,131 13,654 12,785 15,071 10,549 11,633 9,085 12,884 11,218 2004 10,477 12,671 18,303 17,445 15,606 15,011 19,448 17,124 15,132 13,218 17,054 14,596 2005 14,433 12,569 17,053 16,110 18,346 19,218 18,847 19,209 15,435 18,274 17,313 18,392 2006 13,411 12,675 18,597 16,258 20,357 20,457 16,339 18,552 16,910 20,617 19,634 23,567 2007 21,981 22,981 25,914 21,607 30,083 19,008 23,103 21,893 16,974 20,066 17,606 15,846 2008 18,134 18,578 18,306 17,982 21,032 19,222 19,274 15,841 13,864 14,600 13,431 12,865 2009 11,722 10,862 14,184 13,414 15,257 16,914 13,906 14,752 14,762 14,305 12,590 14,843 2010 11,876 12,284 14,468 13,505 13,765 11,929 4,313 10,475 11,644 11,837 9,949 10,040 2011 9,328 9,095 8,998 7,987 8,161 9,278 7,343 7,672 6,082 5,678 6,141 4,951 Data on the number of dispensed medications were provided by the HygiaWeb Information System, a health information system which has been used by the Municipal Health Secretariat of Ribeir˜ao Preto since 1992. This system enables to record information on health services in the entire municipal public healthcare network. In 1998, the implementation of a medication management module in the HygiaWeb System enabled the recording of data on dispensation of medications and pharmaceutical care. Therefore, it has been possible to retrieve secondary information about the dispensation of the main medications for asthma treatment since 1999, covering the whole city. For the purposes of the present study, data on only one drug used to alleviate the symptoms of asthma have been considered for developing the statistical model, namely, salbutamol sulfate tablets of 2 mg. Full data on the number of dispensed medications, from February 1999 to December 2011, are listed in Table 1. In addition, data on temperature and precipitation in the city of Ribeir˜ao Preto were obtained from the Integrated Agrometeorological Information Center of the Agronomic Institute (CIIAGRO, Centro Integrado de Informac¸˜oes Agrometeorol´ogicas do Instituto Agronˆomico). The local Research Ethics Committee has approved the present study (CEP/CSE/ FMRP/USP, protocol number 453) and the permission to access and use the records from
6Using a Bayesian change-point statistical model with autoregressive terms to study... the HygiaWeb System was granted by the local representative of the Health Department (document 248/11-GS RAS/ras). 2.2. Statistical model Let ytbe the number of dispensed medications at the month t,t=1,...,n,wherenis the number of months in the time series. The proposed model is given in a general form by yt=α+g1I[1,θ](t)+g2I(θ,n](t)+St+εt, where gk(t)=βk(t−θ)+ R r=1 ψkr (xrt −xr)+ p j=1 γkj(yt−j−y),k=1,2, αis an intercept term, I{A}(t)denotes an indicator function such that I{A}(t)=1if t∈{A},and0otherwise,θis the change-point to be estimated such that θis an integer number in the interval [1,n],x1t,x2t,...,xRt are observations of Rcovariates at the month t,xrdenotes the mean of xr1,...,xrn,r=1,...,R,ψ1rand ψ2rare the effects of the covariate xrt on ytbefore and after θ, respectively, ydenotes the mean of y1,...,yn,the terms γ11,...,γ1p,γ21,...,γ2p, are autoregressive parameters of order pto be estimated and the random error terms are represented by εt. In addition, St=η1sin2πt 12 +η2cos2πt 12 is a monthly periodic function for estimating seasonal patterns, where η1and η2are real numbers. By using this model, it is assumed that the terms εt,t=1,...,n,are independent and follow the normal distribution with mean 0 and variance depending on the change-point θ,orsay, εt∼N0,σ2 1I[1,θ](t)+σ2 2I(θ,n](t). Thus, σ2 1and σ2 2are the variances of εtbefore and after the change-point, respectively. This model formulation corresponds to the following likelihood function: f(y|θ,ξ ξ ξ)= n ∏ t=1 (2πλt)−1 2exp− n t=1 (yt−μt)2 2λt, where λt=σ2 1I[1,θ](t)+σ2 2I(θ,n](t),(1) μt=α+g1I[1,θ](t)+g2I(θ,n](t)+St,(2)
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 7 y=(y1,y2,...,yn)Tand ξ ξ ξ=(α,β1,β2,γ1,1,...,γ1,p,γ2,1,...,γ2,p,ψ1,1,...,ψ1,R,ψ2,1,..., ψ2,R,σ2 1,σ2 2,η1,η2)Tis the vector of parameters. By definition, f(y|θ,ξ ξ ξ)denotes the joint probability density function of the sample Y=(Y1,Y2,...,Yn). In the Bayesian analysis, it is assumed that the parameters of the vector ξ ξ ξand θhave distributions based on previous knowledge (the prior distributions), which are updated by using the data (represented by f(y|θ,ξ ξ ξ)) to produce the posterior distributions. This is formalized by the Bayes’ theorem, given by f(θ,ξ ξ ξ|y)∝f(y|θ,ξ ξ ξ)p(θ,ξ ξ ξ),wherep(θ,ξ ξ ξ)is the joint prior distribution and f(θ,ξ ξ ξ|y)is the joint posterior distribution. The prior distributions can be “non-informative”, with little effect on the posterior distribution. Thus, the following prior distributions for the parameters of the vector ξ ξ ξare considered: α∼N(0,c1),β1∼N(0,c2),β2∼N(0,c3),γ1,j∼N(0,c4,j),γ2,j∼N(0,c5,j), j=1,...,p,η1∼N(0,c6),η2∼N(0,c7),ψ1,r∼N(0,c8,r),ψ2,r∼N(0,c9,r),r=1,...,R, σ2 1∼IG(c10,c11)and σ2 2∼IG(c12,c13),wherec1,...,c13 are known values for the hyperparameters of the prior distributions, N(0,c)denotes a normal distribution with mean 0 and variance c,andIG(h1,h2)denotes an inverse gamma distribution with mean h2/(h1−1)and variance h2 2/[(h1−1)2(h1−2)]. Large values of c1,...,c13 yield noninformative prior distributions for their respective parameters. It is further assumed prior independence among these parameters. In addition, it is assumed a categorical prior distribution for the change-point θsuch that the prior probabilities of the values 1,2,...,n areassumedtobeequalto1/n. Alternatively, it can be considered that the terms εtfollow a non-standardized Student’s t-distribution with υdegrees of freedom, a location parameter μt, a scale parameter λtand variance λ2 tυ(υ−2)−1for υ>2. In this case, the model formulation corresponds to the following likelihood function: f(y|θ,υ,ξ ξ ξ)= n ∏ t=1⎧ ⎨ ⎩ Γυ+1 2 Γυ 2λt√πυ 1+1 υyt−μt λt2−υ 2⎫ ⎬ ⎭, where Γ(·)is the gamma function, and λtand μtare given by (1) and (2), respectively. For the Bayesian analysis, one can consider the same prior distributions assumed for the previous model and a continuous uniform prior distribution for υ,orsay,υ∼U(2,cυ), where cυis a known hyperparameter (cυ>2). In order to perform a brief sensitivity analysis, we have also considered fixed values for υ. A Bayesian Markov Chain Monte Carlo (MCMC) procedure using the Gibbs sampler algorithm (Casella and George, 1992) was used to estimate the posterior distributions of the parameters of interest and variance components (Carlin and Louis, 1996). The Gibbs sampler algorithm was run for 510,000 iterations and sampled in every 10th simulation. To eliminate the effect of the initial values, the first 10,000 iterations were discarded as a “burn-in-sample”. In this way, 50,000 final Gibbs samples were used for inferences. The 95% credible intervals (95%CI)were obtained from the 2.5% and 97.5% percentiles of the posterior samples of the parameters. The 95% credible inter-
8Using a Bayesian change-point statistical model with autoregressive terms to study... vals are the Bayesian equivalent of the traditional 95% confidence intervals, expressing the central 95% of the range of values that are credible for the respective estimated parameter. Usual diagnostic methods were employed to check the convergence of the MCMC calculations (Carlin and Louis, 1996). After the model fitting, the assumption of independence between the successive random error terms εtwas graphically verified by plotting their respective autocorrelation and partial autocorrelation functions in relation to different lags. The estimation was performed by using the MCMC algorithm implemented in the freely available OpenBUGS software (Lunn et al., 2000). The OpenBUGS code used for this analysis is given in the Appendix A. 2.3. Model specifications In the absence of covariates, three different models were fitted to the data as described below. •Model 1: In this model, the autoregressive terms γ1,1,...,γ1,p,γ2,1,..., γ2,pwere discarded, and consequently, gk=βk(t−θ),fork=1,2. This model does not consider the presence of covariates, nor the monthly periodic function St. •Model 2: This model is similar to Model 1 but it considers the autoregressive terms γ1,1,...,γ1,p,γ2,1,...,γ2,p. •Model 3: This model is similar to Model 2 but it considers the monthly periodic function St. Models 1 to 3 were fitted based on the assumption that the residuals εtfollow a normal distribution or a Student’s t-distribution. In addition, Model 4 is defined as follows: •Model 4: This model is similar to Model 3, but it includes an independent variable. The following variables were considered: average monthly temperature (oC), maximum and minimum monthly temperature (oC) and average monthly precipitation (mm). Due to its highly skewed distribution, a log transformation was applied to the measures of average monthly precipitation. These variables were selected due to their known effects on the asthma admissions in various populations (Ivey, Simeon and Monteil, 2003; Chen, Xirasagar and Lin, 2006). Under this formulation, four different models were fitted to the data, one for each independent variable, thus avoiding problems of collinearity between variables. 2.4. Model selection The deviance information criterion (DIC) is widely used for Bayesian model comparison (Spiegelhalter et al., 2014). However, the proposed model is interpreted by the OpenBUGS as a mixture model, and this software is not able to calculate the DIC value
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 9 in this situation. Another criterion for model selection is derived from the conditional predictive ordinate (CPO) statistics ( Gelfand, Dey and Chang, 1992). For the i-th observation, the CPOiis given by fDi|y[i]=f(Di|Θ)fΘ|D[i]dΘ, where Θis the complete vector of parameters, Diis each instance of all data D,D[i]is Dwithout the current observation iand f(Θ|Di)is the posterior density of Θgiven D[i], i=1,...,n. Thus, the CPO statistics expresses the posterior probability of observing the value or set of values of Diwhen the model is fitted to all data except Di. A MCMC approximation of CPOi(Chen, Shao and Ibrahim, 2000) is given by CPOi=1 B B b=1 1 f(Di|Θb)−1 where Bis the number of iterations during implementation of the MCMC procedure after the burn-in period and Θbis the vector of the samples obtained at the b-th iteration. Thus, approximate CPO statistics can be directly computed with OpenBUGS by defining nodes for f(Di|Θb)−1. Assuming approximate normality, inverse values for CPOi larger than 40 can be considered as possible outliers and higher than 70 as extreme values (Ntzoufras, 2009). The log pseudo marginal likelihood (LPML) is a Bayesian measure of fit or adequacy which is defined based on the CPO statistics (Geisser and Eddy, 1979). For a given model, the LPML value is given by LPML =n i=1log CPOi. The larger is the value of LPML, the better is the fit of the model. The corresponding pseudo Bayes’ factor (PBF) comparing models mand mis PBFmm=exp LPMLm− LPMLm. In addition, the discrepancy between the data and an estimation model can be measured by the sum of squared residuals (SSR) given by SSR = n i=1 ε2 i= n i=1 (yi−μt)2, where μtis obtained by replacing the parameters in (2) by their respective estimates. For fits of different models to a given dataset, a smaller SSR value indicates a better fit to the data.
10 Using a Bayesian change-point statistical model with autoregressive terms to study... Time Number of dispensed medications (x1000) 0 5 10 15 20 25 30 Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan Jan 1999 2000 2001 2002 2003 2004 2005 2006 2007 20082009 2010 2011 2012 Figure 1: Monthly number of dispensed medications (salbutamol capsule, 2mg) by the public health services of Ribeir˜ao Preto, Brazil, from February 1999 to December 2011. 3. Results The graph in Figure 1 shows a time series of the number of monthly dispensations of the salbutamol from February 1999 to December 2011. This graph gives evidence of the presence of a change-point for the time series. It is observed an increase in the number of dispensations of the medication at the beginning of the considered period and a great reduction in March 2003, probably due to the short period when the drug was missing, followed by a further increase in the number of dispensations, until May, 2007. Thereafter, it is observed that the number of dispensed medications decreases until the end of the period of observation. A great reduction in the number of dispensations was also observed in July 2010. However, in the analysis of these data, only one change-point in the time series will be considered. The reductions in the number of dispensations observed in March 2003 and July 2010 will be treated as months with atypical numbers of dispensed medications, instead of instants in which the trend behaviour of the series has been modified. In the Bayesian analysis, non-informative prior distributions were considered for all parameters of the model. In this way, it was considered that c1=c2=c3=c4,j=c5,j= c6=c7=c8,r=c9,r=106,j=1,...,p,r=1,...,R, in the prior distributions for α,β1,
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 11 β2,γ1,j,γ2,j,ψ1,rand ψ2,r,andc10 =c11 =c12 =c13 =0.1 in the prior distributions for σ2 1and σ2 2. In the case of the model with Student-t errors, it is also considered cυ=50, or say, υ∼U(2,50). The number of monthly dispensed medications was divided by 1,000 in order to facilitate the convergence of the computational algorithm. Tables 2 and 3 show the results for the Models 1 to 3 obtained by using the Open- BUGS software. The results in Table 2 consider that the residuals of the models follow a normal distribution, while Table 3 shows results from models with residuals that follow a Student’s t-distribution with υdegrees of freedom. In the case of the Models 2 and 3, they were fitted considering one, two or more autoregressive orders, but it was observed that models with order pequal to or greater 2 did not improve the goodness of fit. Thus, we considered p=1 in all the cases. Table 2 shows that the results of Model 3 have the lowest SSR value and the highest LPML value, suggesting that this model provides the best fit to the data among these three models. The PBF value comparing the Models 3 and 2 is 6.05. In all the fitted models, the estimates for β1are positive and the estimates for β2are negative, showing that the number of dispensed medications is increasing over time until the change-point θis reached, but decreasing from this value. The 95% credible intervals for γ1,1and γ2,1do not contain the value zero, evidencing the significance of the autoregressive parameters of order p=1. The results of Model 3 also show that the 95% credible interval for η2do not contain the value zero, suggesting the evidence of a yearly seasonal pattern in the series. Table 2: Results from the Bayesian change-point statistical models, with residuals following a normal distribution. Model 1 Model 2 Model 3 Parameter Bayesian estimate 95% credible interval Bayesian estimate 95% credible interval Bayesian estimate 95% credible interval α20.80 (20.01 , 21.59) 17.67 (16.18 , 19.13) 18.11 (16.61 , 19.58) β10.166 (0.149 , 0.182) 0.094 (0.062 , 0.125) 0.104 (0.072 , 0.135) β2−0.268 (−0.297 , −0.240) −0.178 (0.230 , −0.127) −0.191 (−0.242 , −0.141) θ100.5 (99.0 , 103.0) 102.3 (100.0 , 107.0) 101.9 (100.0 , 107.0) γ1,1−−0.444 (0.282 , 0.607) 0.401 (0.237 , 0.564) γ2,1−−0.295 (0.099 , 0.500) 0.236 (0.041 , 0.439) σ2 17.82 (5.88 , 10.36) 6.51 (4.87 , 8.65) 6.24 (4.64 , 8.29) σ2 24.09 (2.73 , 6.16) 3.57 (2.32 , 5.53) 3.40 (2.22 , 5.22) η1−− −−0.464 (−0.024 , 0.954) η2−− −−−0.585 (−1.107 , −0.068) LPML −364.8 −354.7 −352.9 SSR 967.2 805.2 758.4
18 Using a Bayesian change-point statistical model with autoregressive terms to study... Alternatively to the method presented here, a maximum likelihood estimate of the change-point θcan be obtained by using the profile likelihood approach. In this case, the profile likelihood p(θ)for θis defined by maximizing the likelihood function with respect to all the other parameters in the model for a range of values for θover which the profile likelihood is to be evaluated. Thus, the maximum likelihood estimate for the change-point is θML =argθmaxp(θ)=argθmax n t=1 ln f(yt|θ, ξ ξ ξML), where ξ ξ ξML is the vector of maximum likelihood estimates for the other parameters associated with the model. Although it is possible to implement a computer algorithm in order to find the maximum likelihood estimate for θ, presentation of this analysis is out of the scope of the present paper. We opted for the use of Bayesian methods, that make it easy to incorporate prior knowledge about the change-point value. In addition, Bayesian estimation is facilitated using the OpenBUGS software, that only requires the specification of the distribution for the data and the prior distributions for the parameters. As previously mentioned, the present statistical model was developed using a time series of the dispensation of salbutamol sulfate tablets 2 mg. Currently, this presentation form of salbutamol sulfate is no longer considered the most appropriate because it is associated with a higher number of side effects when compared to other forms, such as the oral spray (Sociedade Brasileira de Pneumologia e Tisiologia, 2012). Salbutamol sulfate is also indicated for the treatment of other diseases such as chronic obstructive pulmonary disease (COPD), preferably via inhalation. This drug can still be used in some other situations, such as inhibition of uncomplicated premature labor in the last gestational trimester, in which oral administration is the preferable choice (Motazedian et al., 2010). The graphs in Figure 2 shows that the behavior of the time series for the number of monthly dispensations of the salbutamol sulfate tablets of 2 mg from 1999 to 2011 is interpreted in terms of the presence of a change-point. The Brazilian National Drug Policy, introduced in October 30th 1998, established new guidelines for pharmaceutical care in the public health by defining, among other things, a list of essential medications according to the most common health problems reported in the population. Thereafter, and with the decentralization process of drugs distribution for the states and cities (Ordinance GM 176 of March 8th, 1999), it was possible to expand the supply of medications in public health network (Botega and Santos, 2007), which explains the increased number of dispensations of the medication at beginning of year 1999 (Figure 3). Fluctuations in the monthly number of medication dispensed are observed in the Figure 2), with some seasonality. It was hypothesised that local maximum points in the time series are coincident with colder and drier periods, when the airway infections and episodes of bronchospasm occur more frequently, creating a greater demand for the use of the medication in specific periods of the year (Thomazelli et al., 2007; Peterson et al., 2012).
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 19 However, the regression models used in this study do not show a significant association between climatic variables and the number of dispensed medication. Figure 1 shows a great reduction in the dispensation of salbutamol by March 2003 and July 2010, suggesting a period of discontinuity in the supply of the medication. Despite the good results of the decentralization policy of the pharmaceutical care, the provision of essential medications and medicines in some special situations (drugs being part of specialized pharmaceutical care) depended largely on efforts of the Brazilian National Health System managers (Botega and Santos, 2007), which leads to unavailability of the medicament to the population. The reduction in March 2003 was followed by a further increase in the number of dispensations, which as observed until the month of May, 2007. In 2004, as part of the National Policy on Integral Health Care of People with Respiratory Diseases, the cities with primary healthcare services began receiving beclomethasone 250 mcg oral spray, beclomethasone 50 mcg nasal spray and salbutamol 100 mcg oral spray from the Brazilian Ministry of Health for treatment of both asthma and allergic rhinitis, and given that asthma and allergic rhinitis often co-exist in the same individual, the control of one of these diseases favors the control of another, thus contributing to the implementation of better health practices for asthma. At that moment, aminophylline 100mg tablets were being provided by National Health System and now they are no longer supplied, being replaced by salbutamol spray (Botega and Santos, 2007). Figure 2 shows a further reduction in the number of dispensations of salbutamol sulfate from 2007 to the end of 2011, characterizing a change-point that probably reflects the improvement of healthcare provided to patients with asthma when the new medications were introduced. As a final consideration, the article provides suggestions for future investigations: (a) Possible extensions of the model in order to accommodate more than one changepoint should be considered in future research works. (b) In the proposed model, we assumed constant variances before and after the changepoint. Future works can assume the effect of covariates on these variances, thus improving the fit of the proposed model. (c) The actual numbers for asthma medication are huge, as discussed in this paper, and therefore the model assumptions are very reasonable. Extensions of the proposed model for low count data are essential for the analysis of a large broad of other epidemiological time series. (d) By considering the data shown in Table 1, the change-point can be seen in the central part of the time series. Studies with simulated data can be useful to verify the performance of the proposed model in estimating the change-point when the period after change is short (or say, when there are few observations after the change).
20 Using a Bayesian change-point statistical model with autoregressive terms to study... Appendix A The OpenBugs code used to specify the statistical model in its general form and with residuals following a normal distribution is given below. Observations of the independent variable are denoted by x[t]. In addition, cp denotes the change-point value and N is the length of the time series. model { for(t in 1:N) { y[t] ∼dnorm(mu[t], tau[J[t]]) mu[t] <- alpha + beta[J[t]]* (t-cp) + gama[J[t]]* (w[t] - mean(w[])) + St[t] + phi[J[t]]*(x[t] - mean(x[])) k[t] <- step(t - cp - 0.5) J[t] <- 1 + k[t] punif[t] <- 1/N St[t] <- eta[1]*sin(2*pi*t/12) + eta[2]*cos(2*pi*t/12) # Likelihood function L[t] <- 1/sqrt(2*pi*(pow(sigma[1],1-k[t]) * pow(sigma[2],k[t]))) * exp(-(y[t]-mu[t])*(y[t]-mu[t]) /(2*(pow(sigma[1],1-k[t]) * pow(sigma[2],k[t])))) # Inverse values for CPO PO[t] <- 1/L[t] } for(i in 2:N) {w[i] <- y[i-1] } w[1] <- y[1] pi <- 3.14159265359 # Prior distributions prec <- 1.0E-6 alpha ∼dnorm(0.0, prec) cp ∼dcat(punif[]) for(j in 1:2) { beta[j] ∼dnorm(0.0, prec) eta[j] ∼dnorm(0.0, prec) gama[j] ∼dnorm(0.0, prec) phi[j] ∼dnorm(0.0, prec) tau[j] ∼dgamma(0.1,0.1) sigma[j] <- 1/tau[j] }}
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 21 Appendix B Figures 5 and 6 show autocorrelation functions (ACF) and partial autocorrelation functions (PACF) of the residuals of the Models 1, 2 and 3 based on the normal distribution (Figure 5) and Student’s t-distribution (Figure 6). Dashed horizontal lines correspond to the significance boundaries for the non-zero terms. By comparing the plots in Figures 5 and 6, we can observe that the ACF and PACF functions from the models with residuals based on normal and Student’s t-distributions are quite close one another. The Figures show that there was no significant autocorrelation between residuals at different lag times for the Models 2 and 3. 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (a) ACF, Model 1 246810 12 −0.1 0.0 0.1 0.2 0.3 0.4 Lag Partial ACF (b) Partial ACF, Model 1 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (c) ACF Model 2 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (d) Partial ACF, Model 2 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (e) ACF Model 3 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (f) Partial ACF, Model 3 Figure 5: Autocorrelation function (ACF) and partial ACF (PACF) plots for the residuals considering the Models 1, 2 and 3 based on the normal distribution. In each plot, two horizontal dashed lines denote two standard error limits of sample autocorrelation function.
22 Using a Bayesian change-point statistical model with autoregressive terms to study... 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (a) ACF, Model 1 246810 12 −0.1 0.0 0.1 0.2 0.3 0.4 Lag Partial ACF (b) Partial ACF, Model 1 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (c) ACF Model 2 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (d) Partial ACF, Model 2 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (e) ACF Model 3 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (f) Partial ACF, Model 3 Figure 6: Autocorrelation function (ACF) and partial ACF (PACF) plots for the residuals considering the Models 1, 2 and 3 based on the Student’s t-distribution. In each plot, two horizontal dashed lines denote two standard error limits of sample autocorrelation function. Figure 7 shows ACF and PACF of the residuals of the Model 4, based on the normal distribution and including the climatic variables as independent variables. The plots show that there was no significant autocorrelation between residuals at different lag times.
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 23 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (a) ACF, Model 4 Maximum temperature 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (b) Partial ACF, Model 4 Maximum temperature 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (c) ACF, Model 4 Minimum temperature 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (d) Partial ACF, Model 4 Minimum temperature 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (e) ACF, Model 4 Monthly average temperature 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (f) Partial ACF, Model 4 Monthly average temperature 0246810 12 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 Lag ACF (g) ACF, Model 4 Precipitation 246810 12 −0.15 −0.10 −0.05 0.00 0.05 0.10 0.15 Lag Partial ACF (h) Partial ACF, Model 4 Precipitation Figure 7: Autocorrelation function (ACF) and partial ACF (PACF) plots for the residuals considering the Model 4 based on the normal distribution and the climatic variables included as independent variables. In each plot, two horizontal dashed lines denote two standard error limits of sample autocorrelation function. References Achcar, J.A. and Loibel, S. (1998). Constant hazard models with a change-point: a Bayesian analysis using Markov Chain Monte Carlo methods. Biometrical Journal, 40, 543–555. Achcar, J.A., Rodrigues, E.R., Paulino, C.D. and Soares, P. (2010). Non-homogeneous Poisson models with a change-point: an application to ozone peaks in Mexico city. Environmental and Ecological Statistics, 17, 521–541. Achcar, J.A., Rodrigues, E.R. and Tzintzun, G. (2011). Using non-homogeneous Poisson models with multiple change-points to estimate the number of ozone exceedances in Mexico City. Environmetrics, 22, 1–12.
24 Using a Bayesian change-point statistical model with autoregressive terms to study... Achcar, J.A., Martinez, E.Z., Ruffino-Netto, A., Paulino, C.D. and Soares P. (2008). A statistical model investigating the prevalence of tuberculosis in New York City using counting processes with two change-points. Epidemiology and Infection, 136, 1599–1605. Barry, D. and Hartigan, J.A. (1993). A Bayesian analysis for change point problems. Journal of the American Statistical Association, 88, 309–319. Bittar, O.J.N.V., Mendes, J.D.V. and Magalh˜aes, A. (2011). Rede Hospitalar no Estado de S˜ao Paulo: Mapear para Regular.S˜ao Paulo: Secretaria de Estado da Sa´ude de S˜ao Paulo. Botega, A. and Santos, M.R. (2007). Descentralizac¸˜ao das ac¸˜oes de assistˆencia farmacˆeutica - asma e rinite. In: Cerci-Neto, A. (org.) Asma em sa´ude p´ublica. 1st. ed. S˜ao Paulo: Manole. p. 23–30. Casella, G. and George, E.I. (1992). Explaining the Gibbs sampler. The American Statistician, 46, 167–174. Carlin, B.P. and Louis, T.A. (1996). Bayes and Empirical Bayes Methods for Data Analysis.NewYork: Chapman and Hall. Carlin, B.P., Gelfand, A.E. and Smith, A.F.M. (1992). Hierarchical Bayesian analysis of change-point problems. Journal of the Royal Statistical Society: Series C, 41, 389–405. Chen, M.H., Shao, Q.M. and Ibrahim, J.G. (2000). Monte Carlo Methods in Bayesian Computation.New York: Springer. Chen, C.H., Xirasagar, S. and Lin, H.C. (2006). Seasonality in adult asthma admissions, air pollutant levels, and climate: a population-based study. Journal of Asthma, 43, 287–292. Chib, S. (1998). Estimation and comparison of multiple change-point models. Journal of Econometrics, 86, 221–241. Dey, D.K. and Purkayastha, S. (1997). Bayesian approach to change-point problems. Communications in Statistics - Theory and Methods, 26, 2035–2047. Fearnhead, P. (2006). Exact and efficient Bayesian inference for multiple changepoint problems. Statistics and Computing, 16, 203–213. Geisser, S. and Eddy, W. (1979). A predictive approach to model selection. Journal of the American Statistical Association, 74, 153–160. Gelfand, A.E., Dey, D.K. and Chang, H. (1992). Model determination using predictive distributions with implementation via sampling-based methods. In Bayesian Statistics 4. (Edited by J.M. Bernardo, J.O. Berger, A.P. Dawid and A.F.M. Smith), 147–167, Oxford University Press. Ghosh, P. and Vaida, F. (2007). Random change point modelling of HIV immunologic responses. Statistics in Medicine, 26, 2074–2087. Hackl, P. (2012). Statistical Analysis and Forecasting of Economic Structural Change. New York: Springer. Ivey, M.A., Simeon, D.T. and Monteil, M.A. (2003). Climatic variables are associated with seasonal acute asthma admissions to accident and emergency room facilities in Trinidad, West Indies. Clinical & Experimental Allergy, 33, 1526–1530. Jensen, U. and Lautkebohmert, C. (2007). Change-Point Models. In: Ruggeri, F., Kenett, R. and Faltin, W. Encyclopedia of Statistics in Quality and Reliability. Vol. 1. New York: John Wiley & Sons. Jornet-Sanz, M., Corber´an-Vallet, A., Santonja, F. and Villanueva, R. (2017). A Bayesian stochastic SIRS model with a vaccination strategy for the analysis of respiratory syncytial virus. SORT - Statistics and Operations Research Transactions, 1, 159–176. Lee, T.S. (2010). Change-point problems: bibliography and review. Journal of Statistical Theory and Practice, 4, 643–662. Lavielle, M. and Lebarbier, E. (2001). An application of MCMC methods for the multiple change-points problem. Signal Process, 81, 39–53. Lunn, D.J., Thomas, A., Best, N. and Spiegelhalter D. (2000). WinBUGS - a Bayesian modelling framework: concepts, structure, and extensibility. Statistics and Computing, 10, 325–337. Motazedian, S., Ghaffarpasand, F., Mojtahedi, K. and Asadi N. (2010). Terbutaline versus salbutamol for suppression of preterm labor: a randomized clinical trial. Annals of Saudi Medicine, 30, 370–375.
J.A M. de Queiroz, D.C. Aragon, L.M. de Mello, I.T.S. Previdelli and E.Z. Martinez 25 Ntzoufras, I. (2009). Bayesian Modeling using WinBUGS. Hoboken: Wiley. Peterson, M.G., Gaeta, T.J., Birkhahn, R.H., Fern´andez, J.L. and Mancuso, C.A. (2012). History of symptom triggers in patients presenting to the emergency department for asthma. Journal of Asthma, 49, 629–636. Sociedade Brasileira de Pneumologia e Tisiologia. (2012). Diretrizes da Sociedade Brasileira de Pneumologia e Tisiologia para o Manejo da Asma. Jornal Brasileiro de Pneumologia, 38, S1–S46. Spiegelhalter, D.J., Best, N.G., Carlin, B.P. and Linde, A. (2014). The deviance information criterion: 12 years on. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 76, 485–493. Thomazelli, L.M., Vieira, S., Leal, A.L., Sousa, T.S., Oliveira, D.B., Golono, M.A., Gillio, A.E., Stwien, K. E., Erdman, D.D. and Durigon, E.L. (2007). Surveillance of eight respiratory viruses in clinical samples of pediatric patients in Southeast Brazil. Journal of Pediatrics, 83, 422–428. Zeger, S.L., Irizarry, R. and Peng, R.D. (2006). On time series analysis of public health and biomedical data. Annual Review of Public Health, 27, 57–79.