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

Issue with average_forecast #78

Open
Shaoni1334 opened this issue Nov 17, 2020 · 1 comment
Open

Issue with average_forecast #78

Shaoni1334 opened this issue Nov 17, 2020 · 1 comment
Labels

Comments

@Shaoni1334
Copy link

average_forecast seems to have an issue with the scope of the variables in the function. The error message in the following code

`rm(list=ls())
library(midasr)
md2<-function(Data){
x<-Data$x
y<-Data$y
l=2
mod<-midas_r(y ~ mls(x,l:(l+2),3), start=NULL)
avgf<-average_forecast(list(mod),
data=list(x=x,y=y),
insample = 1:200,
outsample = 201:300,
measures = "MSE",
show_progress = F)
}

Data<-list(x=rnorm(900), y=rnorm(300))
md2(Data)
`

@vzemlys
Copy link
Member

vzemlys commented Aug 16, 2022

Yeah, this is an issue, which is a bit tricky to fix. Will have a look someday.

@vzemlys vzemlys added the bug label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants