Hello,

please excuse my ignorance as i am new to R and this might seem trivial to
you

How can i scale my time series in a way that 90% of the data is in the
-0.-9/ +0.9 range?

I think i first have to select the 90% closest to the mean and then
calculate my scaling parameter on it, then scale the whole series.

I think i could use outlier() from outliers package to identify the outer
10%, extract them and then do my scaling, but i assume there is a more
elegant /efficient way to do so.

Does anyone have a hint for me?

Thanks in advance,

Warren

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to