-
Notifications
You must be signed in to change notification settings - Fork 19
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
Allow for NA values in the dependent variable throughout #147
Comments
plot()
function
Thanks for reporting. Can you post code that reproduces this error? And can you post the stack trace? (use |
The full traceback is pretty enormous. Here is the backtrace, hopefully that is helpful. I'll try to reproduce the error either by simulating data or posting data to a gist. Backtrace:
|
Here is the dataframe:
And here is the mcp code: |
Not able to reproduce with the example data. Here is a gist for the csv: |
Thanks! This is definitely a bug. The post-processing functions should allow for NA values in the dependent variable and they don't. As a temporary workaround, use a dataset without NA in |
Sounds good, thanks for your help! |
Reopening to remember to fix this bug in the next release. |
BTW, just looking at your data, perhaps remove the ar() terms in segment 2+. This will fit a single ar() parameter that apply to all segments. No ar() is implicitly ar(N, 0) where N is the order of the previous segment and "0" means "no change in intercept of the autocorrelation coefficient". |
mcp Version 0.3.2
dplyr Version 1.0.8
When trying to plot a large fitted mcpfit object, I'm running into this error:
Error
indplyr::mutate()
:! Problem while computing
fitted = rlang::exec(...)
.Caused by error in
if (any(x < lower) || any(x > upper)) ...
:! missing value where TRUE/FALSE needed`
I also get the same error if calling
fitted(model)
The text was updated successfully, but these errors were encountered: