Adapts periodogram and calculates the 'colour' of the noise of unpredicted de-trended residuals
noise_calc( resid_time_series, predictor, noise_method = c("spectrum", "lomb_scargle") )
| resid_time_series | A |
|---|---|
| predictor | A |
| noise_method | A method for estimating the slope beta. Takes 2 possible
values: |
A list containing the beta slope, the original
spec_obj data.frame, and the fitted linear model.
This function calculates beta slope (assuming 1/f noise family) on the
residual time series using function spec_slope_get.
Diego Barneche and Scott Burgess.