How can I receive as output from VGXVARX the p-value for each parameter in the Econometric Toolbox 2.0.1 (R2011b)?
1 次查看(过去 30 天)
显示 更早的评论
I tried the following example in doc on VGXVARX:
load Data_VARMA22
[EstSpec, EstStdErrors] = vgxvarx(vgxar(Spec), Y, [], Y0);
vgxdisp(EstSpec, EstStdErrors);
This will display "Parameter", "Value", "Std. Error", and "t-Statistic". I also want to know the "p-value" for each coefficient: the Pr > t.
采纳的回答
MathWorks Support Team
2011-9-29
The t stat is the coefficient divided by the standard error. To compute a p-value, one needs the degrees of freedom of the error of the t distribution, dfe, which is the sample size minus the number of estimated parameters. To calculate a p-value, one can execute the following command:
pValue = 2*(tcdf(-|t|,dfe));
The t-statistic is used to test the hypothesis that the parameter being estimated is actually 0, thus it is irrelevant. Since the 95% confidence interval is about 2 standard errors on either side of the estimate, and the t statistic is just the estimate divided by the standard error, the rule of thumb is that a t stat with absolute value > 2 is significant, and rejects the hypothesis of a 0 parameter value. Hence one does not need the p-value.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!