Calling STL function using JStatCom and REngi

mkp raja
2009-06-23
2013-04-17
  • mkp raja
    mkp raja
    2009-06-23

    We have converted the univariate observations to time series objects using "ts" function of R.The output from ts method is passed to stl function. The following exception is thrown by JstatCom during stl execution

    Passing ouput from ts as array to stl function
    Error in stl(arg_0, arg_1) : only univariate series are allowed
    Exception in thread "main" java.lang.RuntimeException: Could not evaluate R expression: stl(arg_0, arg_1)
          at com.jstatcom.engine.rstat.RStatEngine.call(Unknown Source)
          at TestR.separateSeasonalData(TestR.java:58)
          at TestR.main(TestR.java:73)

    Passing ouput from ts as map to stl function
    Error in stl(arg_0, arg_1) :
      series is not periodic or has less than two periods
    Exception in thread "main" java.lang.RuntimeException: Could not evaluate R expression: stl(arg_0, arg_1)
          at com.jstatcom.engine.rstat.RStatEngine.call(Unknown Source)
          at TestR.separateSeasonalData(TestR.java:61)
          at TestR.main(TestR.java:76)

    The output we got from TS function call does not have period or frequncy information, which is mandatory for stl function.

    Please suggest us how to over come this issue.