IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v051i07.html
   My bibliography  Save this article

spacetime: Spatio-Temporal Data in R

Author

Listed:
  • Pebesma, Edzer

Abstract

This document describes classes and methods designed to deal with different types of spatio-temporal data in R implemented in the R package spacetime, and provides examples for analyzing them. It builds upon the classes and methods for spatial data from package sp, and for time series data from package xts. The goal is to cover a number of useful representations for spatio-temporal sensor data, and results from predicting (spatial and/or temporal interpolation or smoothing), aggregating, or subsetting them, and to represent trajectories. The goals of this paper is to explore how spatio-temporal data can be sensibly represented in classes, and to find out which analysis and visualisation methods are useful and feasible. We discuss the time series convention of representing time intervals by their starting time only. This document is the main reference for the R package spacetime, and is available (in updated form) as a vignette in this package.

Suggested Citation

  • Pebesma, Edzer, 2012. "spacetime: Spatio-Temporal Data in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 51(i07).
  • Handle: RePEc:jss:jstsof:v:051:i07
    DOI: http://hdl.handle.net/10.18637/jss.v051.i07
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v051i07/v51i07.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v051i07/spacetime_1.0-0.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v051i07/v51i07.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v051.i07?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    2. Zeileis, Achim & Grothendieck, Gabor, 2005. "zoo: S3 Infrastructure for Regular and Irregular Time Series," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 14(i06).
    3. Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
    4. Grolemund, Garrett & Wickham, Hadley, 2011. "Dates and Times Made Easy with lubridate," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 40(i03).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Mariana Oliveira & Luís Torgo & Vítor Santos Costa, 2021. "Evaluation Procedures for Forecasting with Spatiotemporal Data," Mathematics, MDPI, vol. 9(6), pages 1-27, March.
    2. Hengl, Tomislav & Roudier, Pierre & Beaudette, Dylan & Pebesma, Edzer, 2015. "plotKML: Scientific Visualization of Spatio-Temporal Data," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i05).
    3. Hutniczak, Barbara & Münch, Angela, 2018. "Fishermen's location choice under spatio-temporal update of expectations," Journal of choice modelling, Elsevier, vol. 28(C), pages 124-136.
    4. Gabriel, Edith & Rowlingson, Barry S. & Diggle, Peter J., 2013. "stpp: An R Package for Plotting, Simulating and Analyzing Spatio-Temporal Point Patterns," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 53(i02).
    5. Joseph Acquah & Francis Benyah & Jerry S. Y. Kuma, 2019. "Regularisation Technique for a Distributed Parameter Identification Problem," Journal of Mathematics Research, Canadian Center of Science and Education, vol. 11(1), pages 64-75, February.
    6. Bakar, Khandoker Shuvo & Sahu, Sujit K., 2015. "spTimer: Spatio-Temporal Bayesian Modeling Using R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i15).
    7. Lixin Li & Xiaolu Zhou & Marc Kalo & Reinhard Piltner, 2016. "Spatiotemporal Interpolation Methods for the Application of Estimating Population Exposure to Fine Particulate Matter in the Contiguous U.S. and a Real-Time Web Application," IJERPH, MDPI, vol. 13(8), pages 1-20, July.
    8. Martínez-López, Javier & Martínez-Fernández, Julia & Naimi, Babak & Carreño, María F. & Esteve, Miguel A., 2015. "An open-source spatio-dynamic wetland model of plant community responses to hydrological pressures," Ecological Modelling, Elsevier, vol. 306(C), pages 326-333.
    9. Meyer, Sebastian & Held, Leonhard & Höhle, Michael, 2017. "Spatio-Temporal Analysis of Epidemic Phenomena Using the R Package surveillance," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 77(i11).
    10. Pebesma, Edzer & Bivand, Roger & Ribeiro, Paulo Justiniano, 2015. "Software for Spatial Statistics," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i01).
    11. Roger S. Bivand, 2021. "Progress in the R ecosystem for representing and handling spatial data," Journal of Geographical Systems, Springer, vol. 23(4), pages 515-546, October.
    12. Taylor, Benjamin M. & Davies, Tilman M. & Rowlingson, Barry S. & Diggle, Peter J., 2013. "lgcp: An R Package for Inference with Spatial and Spatio-Temporal Log-Gaussian Cox Processes," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 52(i04).
    13. de Iaco, Sandra, 2017. "The cgeostat Software for Analyzing Complex-Valued Random Fields," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 79(i05).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yun, Seong Do & Gramig, Benjamin M & Delgado, Michael S. & Florax, Raymond J.G.M., 2015. "Does Spatial Correlation Matter in Econometric Models of Crop Yield Response and Weather?," 2015 AAEA & WAEA Joint Annual Meeting, July 26-28, San Francisco, California 205465, Agricultural and Applied Economics Association.
    2. João Romão & João Guerreiro & Paulo M. M. Rodrigues, 2017. "Territory and Sustainable Tourism Development: a Space-Time Analysis on European Regions," REGION, European Regional Science Association, vol. 4, pages 1-17.
    3. Hasan Engin Duran & Pawe³ Gajewski, 2023. "State-level Taylor rule and monetary policy stress," Equilibrium. Quarterly Journal of Economics and Economic Policy, Institute of Economic Research, vol. 18(1), pages 89-120, March.
    4. Chiara Castelli & Angela Parenti, 2020. "Commuting in Europe: An Inter-regional Analysis on its Determinants and Spatial Effects," Working Papers 2020.19, Fondazione Eni Enrico Mattei.
    5. Roger Bivand & Giovanni Millo & Gianfranco Piras, 2021. "A Review of Software for Spatial Econometrics in R," Mathematics, MDPI, vol. 9(11), pages 1-40, June.
    6. Anna Gloria Billé & Marco Rogna, 2022. "The effect of weather conditions on fertilizer applications: A spatial dynamic panel data analysis," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(1), pages 3-36, January.
    7. Castelli, Chiara & Parenti, Angela, 2020. "Commuting in Europe: An Inter-regional Analysis on its Determinants and Spatial Effects," 2030 Agenda 307985, Fondazione Eni Enrico Mattei (FEEM).
    8. Maia A Call & Paul R Voss, 2016. "Spatio-temporal dimensions of child poverty in America, 1990–2010," Environment and Planning A, , vol. 48(1), pages 172-191, January.
    9. Millo, Giovanni, 2014. "Maximum likelihood estimation of spatially and serially correlated panels with random effects," Computational Statistics & Data Analysis, Elsevier, vol. 71(C), pages 914-933.
    10. Celbis, Mehmet Guney & Wong, Pui-hang & Guznajeva, Tatjana, 2018. "The Eurasian customs union and the economic geography of Belarus: A panel convergence approach," MERIT Working Papers 2018-029, United Nations University - Maastricht Economic and Social Research Institute on Innovation and Technology (MERIT).
    11. Millo, Giovanni, 2017. "A simple randomization test for spatial correlation in the presence of common factors and serial correlation," Regional Science and Urban Economics, Elsevier, vol. 66(C), pages 28-38.
    12. Assist. Prof. Dr. Eglantina Hysa & Oltiana Nikolli, M.A., 2014. "Trade Effect On Economic Growth Of Balkan Countries," Revista Tinerilor Economisti (The Young Economists Journal), University of Craiova, Faculty of Economics and Business Administration, vol. 1(23), pages 109-120, November.
    13. Eleftheria Kontou & Noreen McDonald, 2021. "Associating ridesourcing with road safety outcomes: Insights from Austin, Texas," PLOS ONE, Public Library of Science, vol. 16(3), pages 1-18, March.
    14. Giovanni Millo & Gaetano Carmeci, 2011. "Non-life insurance consumption in Italy: a sub-regional panel data analysis," Journal of Geographical Systems, Springer, vol. 13(3), pages 273-298, September.
    15. Adrian Otoiu & Ramona Bere & Catalin Silvestru, 2017. "An Assessment of the First Round Impact of Innovation Industries on Europe’s Regional Economies," The AMFITEATRU ECONOMIC journal, Academy of Economic Studies - Bucharest, Romania, vol. 19(44), pages 289-289, February.
    16. Baltagi, Badi H. & Yen, Yin-Fang, 2014. "Hospital treatment rates and spillover effects: Does ownership matter?," Regional Science and Urban Economics, Elsevier, vol. 49(C), pages 193-202.
    17. Kristina Kocisova & Martina Pastyriková, 2020. "Determinants of non-performing loans in European Union countries," Proceedings of Economics and Finance Conferences 10913085, International Institute of Social and Economic Sciences.
    18. Laha, A. K. & Putatunda, Sayan, 2017. "Travel Time Prediction for Taxi-GPS Data Streams," IIMA Working Papers WP 2017-03-03, Indian Institute of Management Ahmedabad, Research and Publication Department.
    19. Fraccaroli, Nicolò & Giovannini, Alessandro & Jamet, Jean-François & Persson, Eric, 2022. "Ideology and monetary policy. The role of political parties’ stances in the European Central Bank’s parliamentary hearings," European Journal of Political Economy, Elsevier, vol. 74(C).
    20. Michael A Ruderman & Deirdra F Wilson & Savanna Reid, 2015. "Does Prison Crowding Predict Higher Rates of Substance Use Related Parole Violations? A Recurrent Events Multi-Level Survival Analysis," PLOS ONE, Public Library of Science, vol. 10(10), pages 1-19, October.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:051:i07. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.