Most voted "time-series" questions
33 questions
Sort by count of
-
5
votes2
answers1265
viewsDaily Time Series Decomposition
I have a time series of daily flow data. I am trying to decompose the ST to remove trends and seasonalities. But when I use the function decompose the seasonality chart appears a black blur. QHE.ts…
-
5
votes1
answer2745
viewsR how to generate a time series?
I would like to know how to generate a time series of a file that has two columns (date and value), but the date is in the following format yyyy-MM-dd. When I use the ts() command, it replaces the…
-
5
votes2
answers502
viewsTime Series autocorrelation
Consider the stochastic process AR (1). Generate a sequence of 500 random variables and assume c = 3 and Phi = {0.5, 0.95, 1}. Make autocorrelations from 1st to 3rd order (CR). How to generate these…
-
5
votes2
answers183
viewsTrying to generate a graph of a time series
That’s what I did.. #Lê a base de dados ano1<-read.csv("os dados abaixo...",header = TRUE ,sep=";", row.names=1) #Cria a série temporal ano<-ts(ano1[,1],start=c(2009,1),…
-
4
votes1
answer1049
viewsHow to transform data imported from Excel (.csv) into time series
I imported an Excel database to R and I need to turn it into time series to be able to analyze it. However, when I am going to make the transformation to time series R changes the original values to…
-
4
votes3
answers611
viewsHow to build time series with frequencies different from the original?
I have a dataframe with daily precipitation data, with dates 01/01/1900 until 31/12/2010, example: # Data Est_1 Est_2 Est_3 # 17/12/2010 NA 0 0 # 18/12/2010 NA 0 0 # 19/12/2010 NA 1.7 0 # 20/12/2010…
-
4
votes1
answer94
viewsOrganize a time series
I have a base with collected information on weight gain per animal. They were collected at different intervals for each animal. Follow part of the base just below Animal Dia Ganho 5 2 0.99 5 9 1.01…
-
3
votes1
answer138
viewsHow to avoid displacement of a forecast using ARIMA?
I created a prediction model on R using ARIMA with a 2-year daily historical basis (2018-2019). In this model I use Multivariate Analysis to create predictions. dados = dados_dput QTD_PED_TS =…
-
3
votes1
answer152
viewsHow to separate a time series basis into periods
I have a time series basis. On the basis has information of consumption of pig feed (follows below with information of only one day and one animal). There is a column with identification of the…
-
3
votes1
answer310
viewsCalculate average and deviation time series data
I have a database of information of consumption of animals. The date of beginning of collection of consumption of each animal is different. Here is an example with only two animals: Animal Dia…
-
2
votes0
answers61
viewsRegression vs Time Series problem Prediction problem
Long live. I would like to know the difference between a regression problem and a time series Prediction. I think regression is used to understand how independent variables interfere with the…
-
2
votes1
answer179
viewsinformation criteria Akaike temporal series
I need to check the percentage of times AIC and BIC choose the real model. For this, you will have to carry out a Monte Carlo experiment. Specifically, 1000 AR(2) and ARMA(1,1) processes must be…
-
2
votes2
answers233
viewsPlot time series on defined scale
I have a time series record, and I’m having trouble plotting on an appropriate scale. Take this example: #Gerar sinal v1 v1=sin(seq(from=0, to=3*2*pi, length=11060)) #Gerar sinal v2…
-
2
votes2
answers689
viewsHow to create Time Series using Start and End in R?
I’m trying to do a time series with a six-month data sample doing the following: compras = ts(dados_dia$QTDE_COMPRAS, start = c(2018,7), end = c(2019,1), frequency = 90) But by making a…
-
2
votes1
answer261
viewsHow do you put three time series into one?
I’m trying to put three time series together in one, but I’m having a lot of problems. I used the junction c of R, but it is not useful to me because as it comes to monthly series, this command…
-
2
votes1
answer47
viewsHow to turn a table with columns with days and rows with months into a regular time series?
I have an excel data table that was organized in a strange way. Columns are months and rows are days. In the file, after 31 days, resumes the account of the day. In this case, begins another year. I…
-
2
votes1
answer24
viewsHow to find time-series loopholes?
I have several time series with gaps. I mean, day has observation, spends a few days without, then back to observe and so continues with holes. The problem is that they put these series together in…
-
2
votes1
answer33
viewsHow to make a subset in a zoo-type series choosing certain years or months?
I have the following series: library(zoo) zoo_serie <- zoo(1:length(seq.Date(as.Date("1991-12-01"),as.Date("1998-12-31"),'day')),seq.Date(as.Date("1991-12-01"),as.Date("1998-12-31"),'day')) I…
-
1
votes1
answer33
viewsObtaining vehicle forecast (Interpretation of output)
Hello, I am starting in the use of the programming in R for the realization of a project in which I am involved. The question is the following: I have data of counting vehicles hour by hour from…
-
1
votes1
answer283
viewsDifficulty to decompose time series in r
I’m trying to use the R for the first time. I’m trying to assess possible shocks in a VAR model, so I can’t develop the decomp test. being my main question the message "time series has no period, or…
-
1
votes1
answer896
viewsHow to generate and decompose a Time Series in R?
I’m having trouble generating and decomposing a Time Series. In this case, I was able to create a time series ts, but when I went to decompose the series decompose, indicates that there is an error…
-
1
votes1
answer106
viewsHow to generate charts of daily, monthly and annual averages in time series data in R?
I would like to know how to make averages of various intervals, minimum and maximum daily and monthly of a time series of a file that has two columns (date and temperature value), but the date is in…
-
1
votes0
answers61
viewsHow to preserve the date column by exporting a ts or xts object from R to excel?
I am working with a ts file with two variables compib <- cbind(pimsaf, fumosaf) head(compib) pimsaf fumosaf [1,] 77.74133 131.5189 [2,] 80.18227 131.6221 [3,] 79.77395 111.2698 [4,] 79.48862…
-
1
votes0
answers71
viewsForecast of traffic volume
Hello, good afternoon, sir! I am developing a model that will predict the volume of vehicles each day of the year, but I am encountering difficulties because of the functions that make the forecasts…
-
1
votes1
answer94
viewsWhat’s a good accuracy?
Hello, I’m a young student and I’ve been working alone on a project. The project involves car sales (analyzing the amount of cars sold) from Norway from 2007 to 2016. I wanted to try to create a…
-
1
votes1
answer54
viewsHow to find larger increasing or decreasing subsequence in a vector?
I have the following vector: a <- c(1,2,3,1,1,2,3,4,2,5,6,7,8,4,6,4,3,2,1) I would like to find the largest increasing and decreasing subsequence of it. The output would be the indices of the…
-
0
votes1
answer312
viewsplot time series graph where on x-axis show every year
When plotting the normal time series Plot(serie), some years are understood to exist, but do not appear. It would have a way of showing every year of the time series horizontally on the x axis ?…
-
0
votes2
answers550
viewsHow to count sequence numbers in R?
I have a spreadsheet with the amount of rain for each day of the month. If there are at least 5 consecutive days with the cell value equal to 0, the counter gets 1. The next sequence with 5 or more…
-
0
votes1
answer125
viewsR generate time series with initial and final dates for service execution periods
I’m starting to study time series analysis. I have some data sets that are composed as follows: each line consists of one customer service, having the start date (lowest date 2012-01-01), the end…
-
0
votes1
answer101
viewsDeseasonalize PIM data with R
I’ll start by saying that I’m almost illiterate in programming so have a little patience. I am trying to deseasolize the historical series of PIM by r according to the IBGE instructions, for this I…
-
0
votes0
answers11
viewsForecast error using the forecast package in R
I’m trying to create a time series forecast in the test data, but when I try to make the prediction it gives an error that I can’t understand and I can’t find anything like it on the internet that…
-
0
votes1
answer43
viewsContinuous time data in R
I’ve put together a dataset of covid-19 cases per monthly death, but I can’t plot the results. Does anyone know a more elegant or correct way to do this? I processed the database, and at the end…
-
-1
votes1
answer397
viewsHow to create charts using time series showing every month on the x-axis in R?
Suppose I have the following time series: PREVISAO_VL_TR = ts(PREVISAO_VL_TR, start = c(2019,1), end = c(2019,12), frequency = 12 ) And that now I would like to create a chart of this time series:…