Objective: To present a script script to use the RStudio software for decomposition of time series in epidemiological studies using the R language. Materials and methods: The data used in this study to demonstrate the applicability of the R environment in the analysis and decomposition of time series were extracted from DATASUS, and composed of data on mortality from infectious diseases in Brazil and in the North Region, considering deaths by residence, from 1996 to 2019. The data were analyzed using the R language through the RStudio software Version 2022.02.1 . Results: Time series were analyzed using the R language and decomposed into their trend, seasonality and noise components. The seasonality graphs were isolated to understand the variation in the behavior of mortality from infectious diseases in the North Region when compared to data from Brazil distributed in the months of the year. Conclusion: Using RStudio, it was possible to analyze and decompose a large volume of data to build a 25-year time series, subdivided into monthly periods. Allowing the customization of graphic elements and their plotting.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.