hkw8023 发表于 2022-7-1 11:36 
老师,您好。我的数据是周数据,请问λ应该设置为多少呢?谢谢。目前只找到了年-季-月-日的文献,唯独没有 ...
请参照help tsfilter hp里的这段描述 By default, if the units of the time variable are set to daily, weekly, monthly, quarterly, half-yearly, or yearly, then the Ravn-Uhlig rule is used to set the smoothing parameter; otherwise, the default value is smooth(1600). The Ravn-Uhlig rule sets # to 1600p^4, where p is the number of periods per quarter. The smoothing parameter must be greater than 0.