modelr
modelr copied to clipboard
Helper functions for modelling
Hi, I wanted to open this issue before PR'ing, because maybe there's a good reason for the current setup that I'm not seeing. Short version: I think `add_predictions()` should have...
The `master` branch of this repository will soon be renamed to `main`, as part of a coordinated change across several GitHub organizations (including, but not limited to: [tidyverse](https://github.com/tidyverse), [r-lib](https://github.com/r-lib), [tidymodels](https://github.com/tidymodels),...
Fixing this in CONTRIBUTING across multiple packages (see r-lib/usethis#1126).
This clarifies that the column name is not hard coded to "resid" but can be specified.
Hi, I have custom model objects, that I define, for example, as follows: setClass("custommodel",slots=list(coef="numeric")) setMethod("predict", "custommodel",function(object,newdata){ newdata$pred
I expect when calling `add_predictions` on a dataframe with an rstanarm model, that it will add a single new column, with default name pred, to the input dataframe containing the...
Is it possible to add a feature so that in `data_grid()` the argument `.mod ` behaves as in `lm()` for models fitted with brms (class brmsfit)? Here is a reprex...
It would be nice if `geom_ref_line()` could handle the American spelling of "colour" too, like `ggplot2` does. Example: ``` r library(tidyverse) library(modelr) mtcars %>% ggplot() + geom_point(aes(mpg, hp, color =...
Hi, When adding nls model predictions to tibble, where nls model includes categorical variable (a factor) add_predictions() seems to assume the tibble is ordered by that factor. see example below....
It would be great if `typical()` could handle `Date` and `POSIXct` classes. Since `stats::median()` already supports `Date` and `POSIXct` classes, the easiest solution might be to just use `typical.numeric` for...