stl() decomposition won't accept univariate ts object?

前端 未结 6 1440
悲&欢浪女
悲&欢浪女 2020-12-29 17:08

I\'m have issues with stl() time series decomposition function in R telling me my ts object is not univariate when it actually is?

tsData <- ts(data = dum         


        
6条回答
  •  自闭症患者
    2020-12-29 17:11

    Problem could be that you aren't specifying end = c(yyyy,mm).

    If you are using decompose, you don't need to specify the end = . If you are switching to stl and using some old code, you'll need to add this parameter (if you weren't using it with decompose).

    This fixed the "univariate" error issue for me.

提交回复
热议问题