-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fit extremes: Added options to fit an extreme value distribution (EVD) to Data #5933
Conversation
@shadrackkibet you can now review this |
@Ivanluv There are still some open peer review comments above. Please could you clarify whether they're already resolved, or if you still plan to accept/reject them? thanks |
@shadrackkibet could you review this again |
|
updating branch
Extremes design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ivanluv would also be helpful if comments you could add comments explaining certain parts of code that are not clear in first glance.
@Ivanluv does the commit above resolve all the peer review comments above, or are you still working on this? thanks for clarifying |
@lloyddewit this resolves all the peer reviews |
@Ivanluv I went through the previous peer review comments. Most of them seemed to be resolved, so I marked them as resolved. However, some still seem to be open. Please could you review all the comments above that are not marked as resolved? |
@lloyddewit could you look at this again |
Co-authored-by: Shadrack Kibet <[email protected]>
@Ivanluv I think there is one comment in |
@rdstern I have updated the branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the code for one example now:
extRemes::fevd(x = stats::na.exclude(object = max), location.fun = ~station +
year, type = "GEV", method = "MLE")
I'm not sure this is a good way to try to cope with the missing values, so perhaps that should be undone. It still gives the same odd message when there are missing values in the data. I notice now that it also can't cope with missing values in the x'variables. We might just have to accept that for now.
A minor problem is that when the code, as in the example above, is on 2 lines, then it over-types in the title of the plot - at least for a combined plot.
Perhaps a quick look by @shadrackkibet could help. Then we merge and improve later.
@shadrack how can I solve the over typing problem |
|
@Ivanluv can we try to get this merged? anything remaining? |
@shadrackkibet everything is done except for the over-typing issue |
The overtyping in the figure isn't important. It could be merged now, or the problems with missing values could be investigated further. Perhaps merge and have this as an issue? |
|
||
ucrReceiverVariable.SetMeAsReceiver() | ||
ucrSelectorExtremes.Reset() | ||
ucrInputThresholdforLocation.SetText("0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, reset the save control here.
Only a few comments and then this should be ready. Since this is an initial implementation it will be good to get it in. Further improvements can be done after further testing.
|
@shadrackkibet I have resolved the issues you raised. Could you look at this again |
Looks better now. Over to @lloyddewit for the next steps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ivanluv this looks good, just some small comments, thanks
Co-authored-by: lloyddewit <[email protected]>
Co-authored-by: lloyddewit <[email protected]>
Co-authored-by: lloyddewit <[email protected]>
@Ivanluv Thanks for all the changes, there is just one comment still open |
@rdstern Please could you test? thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long-term my only confusion is with missing values. But I see the comment for the fevd function is as follows: "function to be called to handle missing values. Generally, this should remain at he default (na.fail), and the user should take care to impute missing values in
an appropriate manner as it may have serious consequences on the results."
So I suggest it be merged and we continue to test.
@africanmathsinitiative/developers this fixes #5887 and it from PR #5900