Skip to content
Prev 14781 / 15274 Next

Replicating TVECM plot

Hi Rodrigo,
I have no experience with this particular package but I took a quick look.
a) I was able to find the information in the tvec object for the final
Residual Sum of Squares (i.e. for the "optimal" choice).
    More precisely the individual residuals are available in an Nx2 matrix,
call it M, and by calculating t(M) %*% M you get a 2x2 matrix
    and the sum of its diagonals is the Residual Sum of Squares at the
final stage in the search.
b) it looks to me like the tvec object does *not* contain the information
in the plot (I could certainly be wrong).
    This would not be that surprising as there is no obvious necessity for
reporting what are essentially "intermediate" results on the way to the
final answer.

If you really want to reproduce the plot, a couple of options you might
consider:
i. go into the source code and find where the plot is generated and  modify
the code to print out the data that you want
ii. contact the author(s) of the package directly with your question. Maybe
the data is in the returned object. Or maybe they can make an enhancement
to include it in the returned object.

Best,
Eric


On Wed, Jul 31, 2019 at 6:36 PM Rodrigo Badilla <rodrigo.badilla at gmail.com>
wrote:

  
  
Message-ID: <CAGgJW77nesP6J-2P9hCmhvw7s3GK9ay_GLtdzJmaYhWeuvkFeg@mail.gmail.com>
In-Reply-To: <6869d5a2c71d1f53a2eb4802efd45939@desktop-3nkp7dq>