-
Notifications
You must be signed in to change notification settings - Fork 17
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
flesh out summarizeModel framework and loadReg2 method #165
Conversation
Merge branch 'master' of usgs_github:USGS-R/loadflex into issue152 # Conflicts: # man/getPVal.Rd
@wdwatkins - i think this PR is ready to go. could you review and merge? |
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.
Looks good! Only comment would be that maybe we should change the name of summarize.R to something a bit more specific, since the summarize model functions are elsewhere now
|
||
# summarize the coefficient estimates, standard errors, and p-values | ||
coefs <- coef(load.model, summary=TRUE, which=loadReg.model) |
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.
👍
#' @export | ||
#' @family summarizeModel | ||
summarizeModel.loadReg2 <- function(load.model, ...) { | ||
out <- summarizeModel(getFittedModel(load.model), ...) |
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.
👍
retDF <- data.frame( | ||
RMSE = rmse(load.model, model=loadReg.model), | ||
r.squared = loadReg.fit$RSQ, # R-square needs to change when censored values are present!! see print.loadReg.R line 131 in rloadest. is this adjusted? |
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.
We'll need to remember to update this when we deal with #144
Good thoughts, thanks. I renamed to summarize.R to summarizeData.R - not perfect, because it's iffy whether predictions==data, but an improvement over the way-too-generic summarize, as you pointed out. |
I guess travis and appveyor were just on break or something 🤷♂️ merging |
addresses #152