Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if ( gqtest(paired.ds$unemployment ~1)$p.value < 0.1) {
  2.  
  3. print ("**********P-VALUE VALUE LESS THAN 0.05 WE CAN SAY THAT WE CAN REJECT NON CAUSALITY, WE MAY HAVE CAUSALITY *************")
  4.  
  5. #### predicting next 5 months, ***** here is my doubt! How is the predict calculated?
  6. ##### how to know two time series in better than one?
  7. p<- predict(var, n.ahead=5, ci=0.95)
  8. fcst = forecast(var, h = 5)
  9. print( accuracy( fcst, testdata))
  10.  
  11. print ("**********P-VALUE VALUE LESS THAN 0.05 WE CAN SAY THAT WE CAN REJECT NON CAUSALITY, WE MAY HAVE CAUSALITY *************")
  12.  
  13.  
  14. #### predicting next 5 months, ***** here is my doubt! How is the predict calculated?
  15. ##### how to know two time series in better than one?
  16. p<- predict(var, n.ahead=5, ci=0.95)
  17. fcst = forecast(var, h = 5)
  18. print( accuracy(fcst, testdata))
  19. plot(var)
  20. plot(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement