{"action":"created","issue":{"url":"https://api.github.com/repos/robjhyndman/hts/issues/6","labels_url":"https://api.github.com/repos/robjhyndman/hts/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/robjhyndman/hts/issues/6/comments","events_url":"https://api.github.com/repos/robjhyndman/hts/issues/6/events","html_url":"https://github.com/robjhyndman/hts/issues/6","id":37955500,"number":6,"title":"Allow xreg and newxreg to take different values for each series in forecast.gts()","user":{"login":"robjhyndman","id":127518,"avatar_url":"https://avatars.githubusercontent.com/u/127518?v=3","gravatar_id":"","url":"https://api.github.com/users/robjhyndman","html_url":"https://github.com/robjhyndman","followers_url":"https://api.github.com/users/robjhyndman/followers","following_url":"https://api.github.com/users/robjhyndman/following{/other_user}","gists_url":"https://api.github.com/users/robjhyndman/gists{/gist_id}","starred_url":"https://api.github.com/users/robjhyndman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robjhyndman/subscriptions","organizations_url":"https://api.github.com/users/robjhyndman/orgs","repos_url":"https://api.github.com/users/robjhyndman/repos","events_url":"https://api.github.com/users/robjhyndman/events{/privacy}","received_events_url":"https://api.github.com/users/robjhyndman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robjhyndman/hts/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"earowang","id":2456216,"avatar_url":"https://avatars.githubusercontent.com/u/2456216?v=3","gravatar_id":"","url":"https://api.github.com/users/earowang","html_url":"https://github.com/earowang","followers_url":"https://api.github.com/users/earowang/followers","following_url":"https://api.github.com/users/earowang/following{/other_user}","gists_url":"https://api.github.com/users/earowang/gists{/gist_id}","starred_url":"https://api.github.com/users/earowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earowang/subscriptions","organizations_url":"https://api.github.com/users/earowang/orgs","repos_url":"https://api.github.com/users/earowang/repos","events_url":"https://api.github.com/users/earowang/events{/privacy}","received_events_url":"https://api.github.com/users/earowang/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-07-16T07:20:00Z","updated_at":"2016-01-12T05:35:01Z","closed_at":null,"body":"Currently, the following code will work:\r\n```\r\nhtseg2x <- matrix(rnorm(16*17),nrow=16,ncol=17)\r\nhtseg2nx <- matrix(rnorm(10*17),nrow=10,ncol=17)\r\nforecast(htseg2 , h=10, fmethod=\"arima\", xreg=rnorm(16), newxreg=rnorm(10))\r\n```\r\nBut this only allows the same `xreg` and `newxreg` vectors to be applied to all time series. We need to allow a matrix to be passed for each argument. "},"comment":{"url":"https://api.github.com/repos/robjhyndman/hts/issues/comments/170800855","html_url":"https://github.com/robjhyndman/hts/issues/6#issuecomment-170800855","issue_url":"https://api.github.com/repos/robjhyndman/hts/issues/6","id":170800855,"user":{"login":"p-agrawal","id":7213322,"avatar_url":"https://avatars.githubusercontent.com/u/7213322?v=3","gravatar_id":"","url":"https://api.github.com/users/p-agrawal","html_url":"https://github.com/p-agrawal","followers_url":"https://api.github.com/users/p-agrawal/followers","following_url":"https://api.github.com/users/p-agrawal/following{/other_user}","gists_url":"https://api.github.com/users/p-agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/p-agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-agrawal/subscriptions","organizations_url":"https://api.github.com/users/p-agrawal/orgs","repos_url":"https://api.github.com/users/p-agrawal/repos","events_url":"https://api.github.com/users/p-agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/p-agrawal/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T05:35:01Z","updated_at":"2016-01-12T05:35:01Z","body":"Hi,\r\nIs there a workaround for this issue? If yes, could you please point me to it?\r\n\r\nI am trying to forecast demand across a geographical hierarchy (Cities, States, Countries). I am using external regressors like temperature, humidity etc. which assume different values for different cities. Hence, I need to pass a matrix of external regressors for each bottom node of the hierarchy.\r\n\r\nI apologize if this is the wrong forum to ask this question. If a similar topic exists in another forum, please point me to it. \r\n\r\nAny help would be appreciated.\r\nThanks"}}