• No se han encontrado resultados

MANEJO DE ERRORES Y ADMINISTRACIÓN DE EXCEPCIONES

In document ESCUELA POLITÉCNICA NACIONAL (página 44-49)

CAPÍTULO 2: MÉTODO DE INTEGRACIÓN DE APLICACIONES USANDO

2.3 MANEJO DE ERRORES Y ADMINISTRACIÓN DE EXCEPCIONES

Figures 4 and 5 show results for the spatial random effects modeled through the level- 2 and level-3 equations. The kernel density estimates of Figure 4 provide insight into the strength and importance of the various random effects. We first note that the interaction random effects are much weaker than the main random effects. Moreover, the district smooth effects and the uncorrelated district random effects are roughly of equal size and dominate the state random effects which are almost negligible. Figure 5 shows maps of the spatial heterogeneity not explained by covariates for males and females, respectively. Unexplained spatial heterogeneity is additively composed of the district smooth and uncorrelated random effect and the state random effect. Overall, unexplained heterogeneity is higher for females (see also in Figure 4 the right bottom panel). Moreover, females exhibit a more pronounced spatial pattern with higher probabilities of stunting in the north-west and lower probabilities in the south and the north-east. For males we observe a similar pattern although the north-south patterns are less distinct.

5.4

Model choice

Some final remarks regarding model choice are in order. General tools for model choice are pointwise and simultaneous credible intervals for the nonlinear effects as well as Bayesian goodness of fit criteria, particularly the DIC. Also beneficial for model choice is the detailed hierarchical modeling of spatial heterogeneity. For instance, the kernel densities of Figure 4 suggest that the interaction random effect can be restricted to a level-2 equation with a smooth and/or uncorrelated district effect. The spatial main effect could possibly be restricted to the level-2 equation omitting the level-3 states equation. To reduce the complexity of the full interaction model (6) we could in a first step exclude the smooth nonsignificant interactions (in terms of 95% pointwise credible intervals) which slightly reduces the DIC by approximately 15 points. A further reduction of the DIC is obtained by more parsimonious random effects. The best model (in terms of the DIC) is given by a full main effects spatial random effect

including the level-3 equation and a reduced spatial interaction with a simple i.i.d. Gaussian district random effect. In this model the DIC reduces by approximately 25 points compared to the full interaction model. Further reduction of the main effects spatial random effect to a level-2 equation shows almost identical DIC.

6

Conclusion

This paper proposes a multilevel version of STAR models by assuming that the re- gression coefficients of a particular nonlinear term obey another regression model with structured additive predictor. The proposed model may be regarded as an extended version of a multilevel model with nonlinear covariate terms in every level of the hier- archy. Our model framework also comprises proposals for generalizations of random slopes by assuming a common functional form that is scaled by cluster specific scaling factors. We have developed highly efficient MCMC schemes for simulation-based in- ference. The algorithms utilize the hierarchical structure of the models and rigorously exploit the sparsity of design matrices, cross products and penalty matrices. Thereby a considerable gain in numerical efficiency, reduction in computing time and mixing of Markov chains is achieved compared to non-hierarchical versions of the models. The methodology of this paper is the basis for a number of extensions that we plan for future research:

• First of all, we plan to extend multilevel STAR models to multivariate responses, in particular multicategorical regression and seemingly unrelated regression. • We also plan to model other parameters than the mean of the distribution in the

spirit of generalized additive models for location, scale and skewness (GAMLSS, Rigby and Stasinopoulos 2005).

• Another interesting (albeit rather challenging) field is to model hyperparameters in dependence of covariates, e.g. the variance parameter τ2 in the general prior

the specification of a full STAR model should be possible for these hyperparam- eters. This allows for modeling locally adaptive functions or complex covariate driven spatial neighborhood definitions.

• We finally want to develop methodology for automatic model choice and variable selection in the spirit of Belitz and Lang (2008) in a frequentist setting and Scheipl, Fahrmeir, and Kneib (2011) in a Bayesian approach via spike and slab priors.

References

Albert, J. and S. Chib (1993). Bayesian analysis of binary and polychotomous response data. Journal of the American Statistical Association 88, 669–679. Belitz, C. and S. Lang (2008). Simultaneous selection of variables and smoothing

parameters in structured additive regression models. Computational Statistics and Data Analysis 53, 61–81.

Brezger, A. and S. Lang (2006). Generalized structured additive regression based on Bayesian P-splines. Computational Statistics and Data Analysis 50, 967–991. Chan, D., R. Kohn, D. Nott, and C. Kirby (2006). Locally adaptive semiparametric estimation of the mean and variance functions in regression models. Journal of Computational and Graphical Statistics 2006, 915–936.

Cottet, R., R. Kohn, and D. Nott (2008). Variable selection and model averag- ing in semiparametric overdispersed generalized linear models. Journal of the American Statistical Association 103, 661–671.

Davis, T. A. (2006). Direct Methods for Sparse Linear Systems. SIAM.

Eilers, P. H. C. and B. D. Marx (1996). Flexible smoothing using B-splines and penalized likelihood. Statistical Science 11, 89–121.

Fahrmeir, L., T. Kneib, and S. Lang (2004). Penalized structured additive regres- sion for space-time data: a Bayesian perspective. Statistica Sinica 14, 731–761.

Fahrmeir, L. and S. Lang (2001). Bayesian inference for generalized additive mixed models based on Markov random field priors. Journal of the Royal Statistical Society C 50, 201–220.

Fr¨uhwirth-Schnatter, S. and R. Fr¨uhwirth (2010). Data augmentation and MCMC for binary and multinomial logit models. In T. Kneib and G. Tutz (Eds.), Sta- tistical Modelling and Regression Structures: Festschrift in Honour of Ludwig Fahrmeir. Springer Verlag.

Fr¨uhwirth-Schnatter, S., R. Fr¨uhwirth, L. Held, and H. Rue (2009). Improved aux- iliary mixture sampling for hierarchical models of non-gaussian data. Statistics and Computing 19, 479–492.

Fr¨uhwirth-Schnatter, S. and H. Wagner (2011). Bayesian variable selection for ran- dom intercept modelling of Gaussian and non-Gaussian data. In J. M. Bernardo, M. J. Bayarri, J. O. Berger, A. P. Dawid, D. Heckerman, A. F. M. Smith, and M. West (Eds.), Bayesian Statistics 9, pp. 165–200. Oxford University Press. Gamerman, D., A. R. B. Moreira, and H. Rue (2003). Space-varying regression

models: Specifications and simulation. Computational Statistics and Data Anal- ysis 42, 513–533.

Gelfand, A. E. (2006). Prior distributions for variance parameters in hierarchical models. Bayesian Analysis 1, 515–534.

Hastie, T. and R. Tibshirani (1993). Varying-coefficient models. Journal of the Royal Statistical Society B 55, 757–796.

Heinzl, F., T. Kneib, and L. Fahrmeir (2011). Additive mixed models with dirichlet process mixture and P-spline priors. Advances in Statistical Analysis 95, ?? Hennerfeind, A., A. Brezger, and L. Fahrmeir (2006). Geoadditive survival models.

Journal of the American Statistical Association 101, 1065–1075.

Holmes, C. C. and L. Held (2006). Bayesian auxiliary variable models for binary and multinomial regression. Bayesian Analysis 1, 145–168.

prior distribution in spatially adaptive Bayesian P-splines models. Computa- tional Statistics and Data Analysis 51, 2542–2558.

Kamman, E. E. and M. P. Wand (2003). Geoadditive models. Journal of the Royal Statistical Society C 52, 1–18.

Klasen, S. (1996). Nutrition, health, and mortality in Sub Saharan Africa: Is there a gender bias? Journal of Development Studies 32, 913–933.

Krivobokova, T., T. Kneib, and G. Claeskens (2010). Simultaneous confidence bands for penalized spline estimators. Journal of the American Statistical As- sociation 105, 852–863.

Lang, S. and A. Brezger (2004). Bayesian P-splines. Journal of Computational and Graphical Statistics 13, 183–212.

Lang, S., W. Steiner, and P. Wechselberger (2012). Accommodating heterogeneity and functional flexibility in store sales models: A Bayesian semiparametric approach. Under revision for Marketing Science.

Panagiotelis, A. and M. Smith (2008). Bayesian identification, selection and estima- tion of semiparametric functions in high-dimensional additive models. Journal of Econometrics 143, 291–316.

Park, T. and G. Casella (2008). The Bayesian LASSO. Journal of the American Statistical Association 103, 681–686.

Rigby, R. A. and D. M. Stasinopoulos (2005). Generalized additive models for location, scale and shape. Journal of the Royal Statistical Society C 54, 507– 554.

Rue, H. and L. Held (2005). Gaussian Markov Random Fields. Chapman & Hall / CRC, Boca Raton, FL.

Rue, H., S. Martino, and C. Nicolas (2009). Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations. Journal of the Royal Statistical Society B 71, 319–392.

Ruppert, D. (2002). Selecting the number of knots for penalized splines. Journal of Computational and Graphical Statistics 11, 735–757.

Ruppert, D., M. P. Wand, and R. J. Carroll (2003). Semiparametric Regression. Cambridge University Press, Cambridge.

Scheipl, F., L. Fahrmeir, and T. Kneib (2011). Function selection in structured additive regression models based on spike-and-slab priors. Technical report, Department of Statistics, University of Munich.

Smith, M. and R. Kohn (1996). Nonparametric regression using Bayesian variable selection. Journal of Econometrics 75, 317–343.

Smith, M. and R. Kohn (1997). A Bayesian approach to nonparametric bivariate regression. Journal of the American Statistical Association 92, 1522–1535. Somerfelt, E. and F. Arnold (1999). Sex differentials in the nutritional status of

young children. In U. Nations (Ed.), Too Young to Die. New York: United Nations.

Spiegelhalter, D. J., N. G. Best, B. P. Carlin, and A. van der Linde (2002). Bayesian measures of model complexity and fit. Journal of the Royal Statistical Society B 65, 583–639.

Subramanyam, M. A., I. Kawachi, L. F. Berkman, and S. V. Subramanian (2011). Is economic growth associated with reduction in child undernutrition in India? PLoS Medicine 8.

WHO (2002). Global Database on Child Growth and Malnutrition. Geneva: WHO, Department of Nutrition for Health and Development.

Wood, S. N. (2003). Thin-plate regression splines. Journal of the Royal Statistical Society B 65, 95–114.

Wood, S. N. (2006). Generalized Additive Models: An Introduction with R. Chap- man & Hall.

Yue, Y., P. Speckman, and D. Sun (2012). Priors for Bayesian adaptive spline smoothing. Annals of the Institute of Statistical Mathematics 64, 577–613.

Figures

0 .2 .4 .6 .8 1 max ACF 0 10 20 30 40 50 lag hierarchical non−hierarchical Effect of mean education years within districts

0 .2 .4 .6 .8 1 max ACF 0 10 20 30 40 50 lag hierarchical non−hierarchical Markov random field of district

0 .2 .4 .6 .8 1 max ACF 0 10 20 30 40 50 lag hierarchical non−hierarchical random effect of district

0 .2 .4 .6 .8 1 max ACF 0 10 20 30 40 50 lag hierarchical non−hierarchical random effect of region

−2 −1.5 −1 −.5 0 .5 1 effect 0 4 8 12 16 20 24 28 32 36 age in month

Average effect of child’s age

−.75 −.25 .25 .75 effect 15 20 25 30 35 age at first birth

Effect of mother’s age at first birth

−.2 −.1 0 .1 .2 effect 0 4 8 12 16 20 24 28 32 36 age in months

Varying effect of child’s age

−.5 0 .5 1 1.5 effect 15 20 25 30 35 age at first birth

Varying effect of mother’s age at first birth

−2 −1 0 1 effect 0 4 8 12 16 20 24 28 32 36 age in months male female Effect of child’s age by gender

−.4 −.2 0 .2 .4 .6 effect 15 20 25 30 35 age at first birth

male female Effect of mother’s age at first birth by gender

Figure 2: Effect of child’s age and mother’s age at first birth by gender. Shown is the posterior mean together with 95% pointwise and simultaneous credible intervals.

−1.2 −1 −.8 −.6 −.4 −.2 0 .2 .4 .6 effect −1.2 −.8 −.4 0 .4 .8 1.2 mean wealth index within districts

Effect of mean wealth index within districts

−.6 −.4 −.2 0 .2 .4 .6 effect .5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 mean education years within districts

Effect of mean education years within districts

−1 −.5 0 .5 1 effect −3 −2 −1 0 1 2 3 Difference of household’s wealth index to district mean

Effect of household’s wealth index

−.8 −.5 −.2 .1 .4 effect −4 0 4 8 12 16 20 Difference of mother’s education years to district mean

Effect of mother’s education

Figure 3: Nonlinear effects of the wealth index and the education years. Shown is the posterior mean together with 95% pointwise and simultaneous credible intervals.

0 2 4 6 density −.5 −.25 0 .25 .5 main effect interaction effect

kernel density estimators for random district effect

0 5 10 15 density −.5 −.25 0 .25 .5 main effect interaction effect

kernel density estimators for smooth district effect

0 10 20 30 40 density −.5 −.25 0 .25 .5 main effect interaction effect kernel density estimators for random region effect

0 .5 1 1.5 2 density −1.25 −.75 −.25 .25 .75 female male

kernel density estimators for unexplained heterogenity

Figure 4: Kernel densities of the spatial random effects.

−0.88 0 0.88 −1.1 0 1.1

Figure 5: Spatial heterogeneity not explained by covariates for males (left panel) and females(right panel).

University of Innsbruck - Working Papers in Economics and Statistics Recent Papers can be accessed on the following webpage:

http://eeecon.uibk.ac.at/wopec/

2012-07 Stefan Lang, Nikolaus Umlauf, Peter Wechselberger, Kenneth Hartt- gen, Thomas Kneib: Multilevel structured additive regression

2012-06 Elisabeth Waldmann, Thomas Kneib, Yu Ryan Yu, Stefan Lang:

Bayesian semiparametric additive quantile regression

2012-05 Eric Mayer, Sebastian Rueth, Johann Scharler: Government debt, in- flation dynamics and the transmission of fiscal policy shocks

2012-04 Markus Leibrecht, Johann Scharler: Government size and business cycle volatility; How important are credit constraints?

2012-03 Uwe Dulleck, David Johnston, Rudolf Kerschbamer, Matthias Sut- ter: The good, the bad and the naive: Do fair prices signal good types or do they induce good behaviour?

2012-02 Martin G. Kocher, Wolfgang J. Luhan, Matthias Sutter: Testing a forgotten aspect of Akerlof’s gift exchange hypothesis: Relational contracts with individual and uniform wages

2012-01 Loukas Balafoutas, Florian Lindner, Matthias Sutter:Sabotage in tour- naments: Evidence from a natural experiment

2011-29 Glenn Dutcher: How Does the Social Distance Between an Employee and a Manager affect Employee Competition for a Reward?

2011-28 Ronald Peeters, Marc Vorsatz, Markus Walzl: Truth, trust, and sanc- tions: On institutional selection in sender-receiver games forthcoming in Scandinavian Journal of Economics

2011-27 Haoran He, Peter Martinsson, Matthias Sutter:Group Decision Making Under Risk: An Experiment with Student Couples forthcoming in

Economics Letters

2011-26 Andreas Exenberger, Andreas Pondorfer: Rain, temperature and agri- cultural production: The impact of climate change in Sub-Sahara Africa, 1961- 2009

2011-25 Nikolaus Umlauf, Georg Mayr, Jakob Messner, Achim Zeileis: Why Does It Always Rain on Me? A Spatio-Temporal Analysis of Precipitation in Austria forthcoming in Austrian Journal of Statistics

2011-24 Matthias Bank, Alexander Kupfer, Rupert Sendlhofer: Performance- sensitive government bonds - A new proposal for sustainable sovereign debt management

2011-23 Gerhard Reitschuler, Rupert Sendlhofer: Fiscal policy, trigger points and interest rates: Additional evidence from the U.S.

2011-22 Bettina Gr¨un, Ioannis Kosmidis, Achim Zeileis:Extended beta regres- sion in R: Shaken, stirred, mixed, and partitioned

2011-21 Hannah Frick, Carolin Strobl, Friedrich Leisch, Achim Zeileis:Flexi- ble Rasch mixture models with package psychomix

2011-20 Thomas Grubinger, Achim Zeileis, Karl-Peter Pfeiffer:evtree: Evolu- tionary learning of globally optimal classification and regression trees in R

2011-19 Wolfgang Rinnergschwentner, Gottfried Tappeiner, Janette Walde:

Multivariate stochastic volatility via wishart processes - A continuation

2011-18 Jan Verbesselt, Achim Zeileis, Martin Herold: Near Real-Time Distur- bance Detection in Terrestrial Ecosystems Using Satellite Image Time Series: Drought Detection in Somaliaforthcoming in Remote Sensing and Environment 2011-17 Stefan Borsky, Andrea Leiter, Michael Pfaffermayr: Does going green

pay off? The effect of an international environmental agreement on tropical timber trade

2011-16 Pavlo Blavatskyy: Stronger Utility

2011-15 Anita Gantner, Wolfgang H¨ochtl, Rupert Sausgruber:The pivotal me- chanism revisited: Some evidence on group manipulation

2011-14 David J. Cooper, Matthias Sutter: Role selection and team performance

2011-13 Wolfgang H¨ochtl, Rupert Sausgruber, Jean-Robert Tyran:Inequality aversion and voting on redistribution

2011-12 Thomas Windberger, Achim Zeileis: Structural breaks in inflation dyna- mics within the European Monetary Union

2011-11 Loukas Balafoutas, Adrian Beck, Rudolf Kerschbamer, Matthias Sutter: What drives taxi drivers? A field experiment on fraud in a market for credence goods

2011-10 Stefan Borsky, Paul A. Raschky: A spatial econometric analysis of com- pliance with an international environmental agreement on open access re- sources

2011-09 Edgar C. Merkle, Achim Zeileis: Generalized measurement invariance tests with application to factor analysis

2011-08 Michael Kirchler, J¨urgen Huber, Thomas St¨ockl: Thar she bursts - reducing confusion reduces bubbles modified version forthcoming in

American Economic Review

2011-07 Ernst Fehr, Daniela R¨utzler, Matthias Sutter:The development of ega- litarianism, altruism, spite and parochialism in childhood and adolescence

2011-06 Octavio Fern´andez-Amador, Martin G¨achter, Martin Larch, Georg Peter: Monetary policy and its impact on stock market liquidity: Evidence from the euro zone

2011-05 Martin G¨achter, Peter Schwazer, Engelbert Theurl: Entry and exit of physicians in a two-tiered public/private health care system

2011-04 Loukas Balafoutas, Rudolf Kerschbamer, Matthias Sutter: Distribu- tional preferences and competitive behavior forthcoming in

Journal of Economic Behavior and Organization

2011-03 Francesco Feri, Alessandro Innocenti, Paolo Pin:Psychological pressure in competitive environments: Evidence from a randomized natural experiment: Comment

2011-02 Christian Kleiber, Achim Zeileis: Reproducible Econometric Simulations

2011-01 Carolin Strobl, Julia Kopf, Achim Zeileis: A new method for detecting differential item functioning in the Rasch model

In document ESCUELA POLITÉCNICA NACIONAL (página 44-49)