-
Notifications
You must be signed in to change notification settings - Fork 114
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
Propagate missing values from data when returning vectors #546
Comments
Would we do the same for |
This also means that |
A related issue (if a separate issue should be opened for this please let me know, but I think this should be revolved along with the original issue with a consistent approach):
(the issue is that, if I understand things correctly, lagging is applied after dropping of rows with More generally e.g.:
|
I think that's JuliaStats/StatsModels.jl#202. It's a bit harder to fix. |
Good point. We could say that functions related to the fitting procedure, like |
I agree that it is probably harder, but my point was that we should keep also this case in mind when developing a solution (as it might be affected by that requirement). |
That arguably includes IMO the current behavior that these functions return the objects/quantities as actually used by the model is the right one, and the case of including any missing values that were present in the input is better handled separately. I actually think that the existing |
When a model was fitted on data containing missing values which have been dropped,
predict(model)
,residuals(model)
,fitted(model)
andresponse(model)
should return a vector of the same length as the data withmissing
for corresponding entries. It would make sense to change this before releasing GLM 2.0, even if a more general fix is implemented later in StatsModels (JuliaStats/StatsModels.jl#202).See JuliaStats/MixedModels.jl#650 for a similar issue in MixedModels.
The text was updated successfully, but these errors were encountered: