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

EBMAforecast warning #5

Open
philippbroniecki opened this issue May 4, 2020 · 1 comment
Open

EBMAforecast warning #5

philippbroniecki opened this issue May 4, 2020 · 1 comment

Comments

@philippbroniecki
Copy link
Collaborator

In ebma.R, the following code leads to a warning message from the EBMAforecast package.

      EBMAforecast::makeForecastData(
        .predCalibration = data.frame(train_preds),
        .outcomeCalibration = as.numeric(unlist(train_y)),
        .predTest = data.frame(test_preds),
        .outcomeTest = as.numeric(unlist(test_y)))

Warning messages:
1: In if (class(.predCalibration) == "data.frame") { :
the condition has length > 1 and only the first element will be used
2: In if (class(.predTest) == "data.frame") { :
the condition has length > 1 and only the first element will be used
3: In if (class(.predCalibration) == "matrix") { :
the condition has length > 1 and only the first element will be used
4: In if (class(.predTest) == "matrix") { :
the condition has length > 1 and only the first element will be used

@levi-polsci
Copy link

I get a similar warning message in the serialize() function that is called within the ebma_mc_draws() function.
The warning message I receive is:

Warning in if (class(InvFisher) == "try-error") { :
  the condition has length > 1 and only the first element will be used
Warning in if (class(InvFisher) == "try-error") InvFisher <- try(solve(F_gross),  :
  the condition has length > 1 and only the first element will be used
Warning in if (class(InvFisher) == "try-error") { :
  the condition has length > 1 and only the first element will be used
Warning in if (s > 1) warning("Random slopes are not standardized back!") :
  the condition has length > 1 and only the first element will be used

I don't know if these warning are related but maybe they are...

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