Displaying 1 result from an estimated 1 matches for "varrow".
Did you mean:
narrow
2012 Jul 27
2
Extracting results from the VAR output
...e.g. [1],
instead of writing for instance $Liabilities. The reason why I want to do
this is, that this would help me to automize the process, since I may not
use the variable Liabilities next time.
Here is an example when the process works, but I have to do it manually by
typing in $Liabilities
VARrow<-VAR(data,p=1,type="const")
row<-VARrow$varresult$Liabilities$coefficient
row[1]
Liabilities.l1
0.06898797
It would be nice if I could type in e.g. colnames(data)[1] instead of
Liabilities (because colnames(data)[1] referes to Liabilites) but this
command just says the value...