Skip to content

Predict VAR

3 messages · Luis Felipe Parra, David Winsemius

#
On May 25, 2010, at 4:14 PM, Luis Felipe Parra wrote:

            
Hard to tell what that means since you have not specified what package  
was used or the class of the object on which predict was applied.
The problem is that you have here shown a different object than what  
you created with predict.
Loops are just as efficient as the apply methods.
Hard to tell for sure since you're only showing us output and not a  
reproducible version. The str function is more informative than  
printing to the console.
David Winsemius, MD
West Hartford, CT
#
On May 25, 2010, at 4:49 PM, David Winsemius wrote:

            
After looking at objects created in the help page for the predict  
function in the vars package, I suspect you want:

sapply(PronFac$fcst, "[", 1)  #not more efficient but more expressive  
perhaps.
David Winsemius, MD
West Hartford, CT