[R] P value of VAR model from Portmanteau Test

Rui Barradas ruipbarradas at sapo.pt
Tue May 23 15:36:06 CEST 2017


Hello,

It seems to be right.
You have Chi-squared = 23.724, df = 8, p-value = 0.002549. So try the R 
function ?pchisq:

pchisq(23.724, df = 8, lower = FALSE)
[1] 0.002549054

Hope this helps,

Rui Barradas

Em 23-05-2017 13:08, Dhivya Narayanasamy escreveu:
> Hi,
>
> I am working with bivariate time series data. I used VAR model to fit and
> forecast.
> But the "*p*" value from seria.test (Portmanteau Test) gives values *p<<
> 0.05*. Is that okay?
>
>
>> var1 = VAR(datax.ts, p= 8)
>> serial.test(var1, lags.pt=10, type = "PT.asymptotic")
>
> Portmanteau Test (asymptotic)
>
> data:  Residuals of VAR object var1
> Chi-squared = 23.724, df = 8, p-value = 0.002549
>
> Am i doing it correct? or Is this wrong? Should the value of P supposed to
> be greater than >> 0.05 ?  When i forecast this VAR model, it gives *flat
> forecast* which is again wrong. Please help me.
>
>
> Regards| Mit freundlichen Grüßen,
>> Dhivya Narayanasamy
>>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list