Doubts about Struture in the function accuracy from Forecast Package

Hello everyone :slight_smile:

Could you help me to understand what the term [2,2] means in the expression bellow:

accuracy(fit, data_ts_teste)[2,2]


Looking at the documentation, the accuracy() function returns a matrix. The [2,2] will extract the value in the second row and second column of that matrix. I expect that is the training set's Root Mean Squared Error but you should look at the output of accuracy(fit, data_ts_teste)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.