R/residual_autocorrelation.R
residual_autocorrelation.Rdresidual_autocorrelation Calculates the average autocorrelations of the residual sequence of travel time.
residual_autocorrelation(data, network_parameters, lag = 1L, nsamples = 500L)A data frame of trips and their road level travel information, formatted as trips, see trips or data(trips); View(trips).
An output of link_mean_variance, see ?link_mean_variance.
Maximum lag at which to calculate the autocorrelations. Default is 1 for the first order-autocorrelations.
The number of trips to sample for parameter estimation. Default is 500.
Returns a data frame of lag order and autocorrelation estimates.
A residual sequence is a sequences of (duration_sec_i - E[duration_sec_i])/sd(duration_sec_i) for the i links of a trip.
if (FALSE) {
}