-
Notifications
You must be signed in to change notification settings - Fork 303
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
test failure re: augment.betareg()
#1216
Comments
A more minimal reprex: library(broom)
library(betareg)
data("GasolineYield")
fit1 <- betareg(yield ~ batch + temp, data = GasolineYield)
augment(fit1, newdata = head(GasolineYield))
#> Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 6, 32
# fine if uses newdata with the same number of rows
augment(fit1, data = NULL, newdata = GasolineYield)
#> # A tibble: 32 × 7
#> yield gravity pressure temp10 temp batch .fitted
#> <dbl> <dbl> <dbl> <dbl> <dbl> <fct> <dbl>
#> 1 0.122 50.8 8.6 190 205 1 0.101
#> 2 0.223 50.8 8.6 190 275 1 0.195
#> 3 0.347 50.8 8.6 190 345 1 0.343
#> 4 0.457 50.8 8.6 190 407 1 0.508
#> 5 0.08 40.8 3.5 210 218 2 0.0797
#> 6 0.131 40.8 3.5 210 273 2 0.137
#> 7 0.266 40.8 3.5 210 347 2 0.263
#> 8 0.074 40 6.1 217 212 3 0.0943
#> 9 0.182 40 6.1 217 272 3 0.167
#> 10 0.304 40 6.1 217 340 3 0.298
#> # ℹ 22 more rows Created on 2024-09-26 with reprex v2.1.1 |
Works fine with |
simonpcouch
added a commit
that referenced
this issue
Sep 26, 2024
simonpcouch
added a commit
that referenced
this issue
Sep 26, 2024
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: