-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEVD plot #75
Comments
Would be a nice addition, indeed. In related packages (e.g. |
Yeah I think that'd be even better! |
Will get onto it! |
How to look for the fevd in the number form, contribution of each variable. Is there any way to plot it in the stacked histogram form. |
Hi, you can access the draws of the FEVDs by using A plotting function is yet to be finally implemented, but you can take a look at 69_fevd_plot.R. |
For the plotting function to work, you would have to source the code (commenting it out before) in the file that I sent you the link to. Did you do that? With regards to the |
Hey Curtis, from the outputs here, you could just subset, e.g., the median at a specific horizon, and should then get a variables * variables matrix. |
Hey @lqvecon, f$fevd[1, , 1, ]
[,1] [,2] [,3]
[1,] 1.00000000 0.00000000 0.0000000
[2,] 0.11747481 0.88252519 0.0000000
[3,] 0.02342656 0.00820949 0.9683639 Here we subset to the first draw (dim-1) on impact (dim-3). In row 1 (dim-2), we have a shock of 1 on 1 etc. Also see: f$fevd[1, 1, , ]
[,1] [,2] [,3]
[1,] 1.0000000 0.0000000000 0.00000000000
[2,] 0.9990679 0.0008683616 0.00006375813
[3,] 0.9975037 0.0022802601 0.00021599611
[4,] 0.9957108 0.0038347691 0.00045438926
[5,] 0.9939046 0.0053227681 0.00077259284
[6,] 0.9921923 0.0066457662 0.00116190901
[7,] 0.9906200 0.0077675053 0.00161247577
[8,] 0.9892005 0.0086854136 0.00211409150
[9,] 0.9879293 0.0094139586 0.00265676977
[10,] 0.9867938 0.0099751010 0.00323109692
[11,] 0.9857786 0.0103929632 0.00382844675
[12,] 0.9848679 0.0106909869 0.00444109283 where you can track a shock of 1 (on 1–3 in the columns) over time (rows). |
We could add a quick and dirty plot for FEVDs:
The text was updated successfully, but these errors were encountered: