It seems to me that it needs to be:
v.adj <- var(remainder, na.rm = TRUE)
instead. This would be in line with the seasonal case and with a slide deck that I read on the topic (http://robjhyndman.com/seminars/big-time-series/). Also, I was getting trends of 1 for series that don't seem to have a trend, and trend of 0 with series that seem to have one.
In line 184 of tsmeasures.R, you have:
It seems to me that it needs to be:
v.adj <- var(remainder, na.rm = TRUE)
instead. This would be in line with the seasonal case and with a slide deck that I read on the topic (http://robjhyndman.com/seminars/big-time-series/). Also, I was getting trends of 1 for series that don't seem to have a trend, and trend of 0 with series that seem to have one.