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:
Get
To run a function you should:
Post
Then 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
Post
Click add parameters every time you want to add a new parameters and values.
Define the input data:
tsdata
Athens_executed_ts
Define the prediction steps parameter:
prediction.steps
2
You 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.