How can we convert this R code into SAS ETS ?
We have run this code on sashelp.air file - see results attached
-------------------------------------------------------------------------- The code -----------------------------------------------------------
#change the path
df<- read.csv("\download\AIR.csv")
lambda=26000
HP_FILTER_AIR= hpfilter(df$AIR,type=c("lambda"),drift=FALSE,freq=lambda)
df$cycle <- HP_FILTER_AIR$cycle
df$trend <- HP_FILTER_AIR$trend
---------------------------------------------------------------------------------------------------------------------------------------------------
Many thanks