This document describes the use of the functions implemented in TimeSeries.OBeu package in OpenCPU environment, after installing OpenCPU and TimeSeries.OBeu package on your OpenCPU server address(/ocpu/test).
Go to: yourserver/ocpu/test
Type to the endpoint:
If you want to see the function parameters you should:
GetTo run a function you should:
PostThen you can click on Ajax Request.
In this example we will use ts.analysis function that returns in a single call a json string or a list with the following components:
| Component | Output | Description |
|---|---|---|
| acf.parameters |
|
|
| pacf.parameters |
|
|
| acf.residuals.parameters |
|
|
| pacf.residuals.parameters |
|
|
| stl.plot |
|
|
| stl.general |
|
|
| residuals |
|
|
| compare |
|
|
| forecasts |
|
|
Go to: yourserver/ocpu/test
Copy and paste the following function to the endpoint
PostClick add parameters every time you want to add a new parameters and values.
Define the input data:
tsdataAthens_executed_tsDefine the prediction steps parameter:
prediction.steps2You add likewise x.order parameter to fit a specific arima order, see TimeSeries.OBeu reference manual for further details.
copy the /ocpu/tmp/{this_id_number}/R/.val (second on the right panel)
finally, paste yourserver/ocpu/tmp/{this_id_number}/R/.val on a new tab.