Skip to content
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

mlp and elm don't work with vectors as xreg #5

Open
config-i1 opened this issue Feb 8, 2019 · 0 comments
Open

mlp and elm don't work with vectors as xreg #5

config-i1 opened this issue Feb 8, 2019 · 0 comments

Comments

@config-i1
Copy link

It would be great to allow this to work:
mlp(BJsalesInsample,xreg=window(BJsales.lead,1,120))

Instead xreg only accepts matrix, so this needs to be done all the time:
mlp(BJsalesInsample,xreg=as.matrix(window(BJsales.lead,1,120)))

Maybe do that transformation in the code automatically if !is.matrix(xreg)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant