0
$\begingroup$

I am using the library fpp2 in R and using the wmurders time-series to forecast the murders of females in the US.

We have a time-series from 1950 until 2004. I actually have a problem defining the frequency. The frequency should be equal to 1 since we have one yearly observation.

Unfortunately, I cannot apply the decompose and stl functions using a frequency lower than 2.

Using a frequency = 1 here is the our plot:

enter image description here

Using the decompose function with frequency = 2:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.