Skip to content
Prev 256948 / 398506 Next

Automatically extract info from Granger causality output

Dear Bernhard,

thank you very much for the response. Yes, I am using the packsges
"vars" with fuchrions VAR() and causality().

1)Giving colnames to the objects does unfortunately not  change anything.

2) I am not sure if I understood you right. Did you mean to insert
Countml$Granger$p.value rather than  Count$ml$Granger$p.value? This
returns: Error: Object 'Countms' not found.

By the way, str(Count) produces the following:
List of 4
 $ ml:List of 2
  ..$ Granger:List of 5
  .. ..$ statistic: num [1, 1] 0.277
  .. .. ..- attr(*, "names")= chr "F-Test"
  .. ..$ parameter: Named num [1:2] 1 122
  .. .. ..- attr(*, "names")= chr [1:2] "df1" "df2"
  .. ..$ p.value  : num [1, 1] 0.6
  .. ..$ method   : chr "Granger causality H0: y1 do not Granger-cause x"
  .. ..$ data.name: chr "VAR object x"
  .. ..- attr(*, "class")= chr "htest"
  ..$ Instant:List of 5
  .. ..$ statistic: num [1, 1] 19.7
  .. .. ..- attr(*, "names")= chr "Chi-squared"
  .. ..$ parameter: Named int 1
  .. .. ..- attr(*, "names")= chr "df"
  .. ..$ p.value  : num [1, 1] 8.86e-06
  .. ..$ method   : chr "H0: No instantaneous causality between: y1 and x"
  .. ..$ data.name: chr "VAR object x"
  .. ..- attr(*, "class")= chr "htest"
 $ jp:List of 2
.
.
.
.

Best Regards,

Ivan

On Fri, Apr 15, 2011 at 10:13 AM, Pfaff, Bernhard Dr.
<Bernhard_Pfaff at fra.invesco.com> wrote: