Description Usage Arguments Author(s) References See Also Examples
Calling stlplus
function from Ryan Hafen's stlplus
package on time series at each location in parallel.
Every station uses the same smoothing parameter
1 2 | stlfit(input, output, model_control = spacetime.control(),
cluster_control = mapreduce.control())
|
input |
The path of input sequence file on HDFS. It should be by location division. |
output |
The path of output sequence file on HDFS. It is by location division but with seasonal and trend components |
model_control |
The list contains all smoothing parameters |
cluster_control |
A list contains all mapreduce tuning parameters. |
Xiaosu Tong
R. B. Cleveland, W. S. Cleveland, J. E. McRae, and I. Terpenning (1990) STL: A Seasonal-Trend Decomposition Procedure Based on Loess. Journal of Official Statistics, 6, 3–73.
Ryan Hafen (2010): stlplus: Local regression models: Advancements, applications, and new methods. Purdue University
spacetime.control
, mapreduce.control
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
FileInput <- "/tmp/bystat"
FileOutput <- "/tmp/bystatfit"
ccontrol <- mapreduce.control(libLoc=NULL, reduceTask=0)
mcontrol <- spacetime.control(
vari = "resp", time = "date", n = 576, stat_n=7738, n.p = 12, s.window = "periodic",
t.window = 241, degree = 2, span = 0.015, Edeg = 2
)
stlfit(FileInput, FileOutput, model_control=mcontrol, cluster_control=ccontrol)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.