楼主: 等风来pppp
2945 0

[程序分享] R语言 VAR模型拟合结果解析 [推广有奖]

  • 0关注
  • 1粉丝

已卖:304份资源

大专生

65%

还不是VIP/贵宾

-

威望
0
论坛币
726 个
通用积分
2.1800
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3849 点
帖子
32
精华
0
在线时间
65 小时
注册时间
2016-4-9
最后登录
2020-3-10

楼主
等风来pppp 发表于 2017-8-1 17:29:04 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
>data.new<-data.frame(lncpi,lnneer)
>var<-VAR(data.new,lag.max=2,ic="AIC")
> summary(var)

VAR Estimation Results:
=========================
Endogenous variables: lncpi, lnneer
Deterministic variables: const
Sample size: 135
Log Likelihood: 873.227
Roots of the characteristic polynomial:
0.9621 0.9621 0.3829 0.1847
Call:
VAR(y = data.new, lag.max = 2, ic = "AIC")


Estimation results for equation lncpi:
======================================
lncpi = lncpi.l1 + lnneer.l1 + lncpi.l2 + lnneer.l2 + const

          Estimate Std. Error t value Pr(>|t|)   
lncpi.l1   0.80917    0.08578   9.433   <2e-16 ***
lnneer.l1 -0.09248    0.04705  -1.965   0.0515 .  
lncpi.l2   0.12907    0.08483   1.521   0.1306   
lnneer.l2  0.08381    0.04712   1.779   0.0777 .  
const      0.32677    0.15855   2.061   0.0413 *  
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1


Residual standard error: 0.007369 on 130 degrees of freedom
Multiple R-Squared: 0.8791,     Adjusted R-squared: 0.8754
F-statistic: 236.3 on 4 and 130 DF,  p-value: < 2.2e-16


Estimation results for equation lnneer:
=======================================
lnneer = lncpi.l1 + lnneer.l1 + lncpi.l2 + lnneer.l2 + const

          Estimate Std. Error t value Pr(>|t|)   
lncpi.l1  -0.18430    0.14954  -1.232 0.220030   
lnneer.l1  1.31275    0.08203  16.003  < 2e-16 ***
lncpi.l2   0.28850    0.14789   1.951 0.053238 .  
lnneer.l2 -0.31998    0.08215  -3.895 0.000156 ***
const     -0.44726    0.27641  -1.618 0.108065   
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1


Residual standard error: 0.01285 on 130 degrees of freedom
Multiple R-Squared: 0.9908,     Adjusted R-squared: 0.9905
F-statistic:  3504 on 4 and 130 DF,  p-value: < 2.2e-16



Covariance matrix of residuals:
           lncpi    lnneer
lncpi  5.430e-05 7.761e-06
lnneer 7.761e-06 1.650e-04

Correlation matrix of residuals:
         lncpi  lnneer
lncpi  1.00000 0.08198
lnneer 0.08198 1.00000


R 运行的结果如上,那么拟合出的VAR方程是多少呢?在线等!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:R语言、VAR模型

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 05:37