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

bootstrap_irf.pvargmm fails when typeof_irf = c("OIRF") #2

Open
gfrisch opened this issue Dec 9, 2022 · 1 comment
Open

bootstrap_irf.pvargmm fails when typeof_irf = c("OIRF") #2

gfrisch opened this issue Dec 9, 2022 · 1 comment

Comments

@gfrisch
Copy link

gfrisch commented Dec 9, 2022

if (typeof_irf == c("OIRF")){

Hello,

The function bootstrap_irf.pvargmm fails when parameter typeof_irf is c("OIRF"). In bootstrap_irf.pvargmm function, the parallelized treatement to generate the OIRFs returns nothing as the second if statement is evaluated at the end.

The patch is

    if (typeof_irf == c("OIRF")){
       return(oirf(model = pvar_zwischen, n.ahead = n.ahead))
    }

Instead of

    if (typeof_irf == c("OIRF")){
       oirf(model = pvar_zwischen, n.ahead = n.ahead)
    }
@gfrisch gfrisch changed the title bootstrap_irf.pvargmm error when typeof_irf = c("OIRF") bootstrap_irf.pvargmm fails when typeof_irf = c("OIRF") Dec 9, 2022
@gaborcsardi
Copy link

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

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

2 participants