Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 20, 2024
1 parent 72e7793 commit 87ca2c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-find_terms.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ test_that("find_terms, - box cox", {
find_terms(model),
list(response = "I((mpg^0.7 - 1)/0.7)", conditional = "hp")
)
model <- lm((mpg ^ -1.3 - 1) / -1.3 ~ hp, data = mtcars)
model <- lm((mpg^-1.3 - 1) / -1.3 ~ hp, data = mtcars)
expect_identical(
find_terms(model),
list(response = c("(mpg^-1.3 - 1)", "-1.3"), conditional = "hp")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-find_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test_that("find_transformation - box-cox", {
})

test_that("find_transformation - box-cox, minus", {
m <- lm((mpg ^ -1.3 - 1) / -1.3 ~ hp, data = mtcars)
m <- lm((mpg^-1.3 - 1) / -1.3 ~ hp, data = mtcars)
expect_identical(find_transformation(m), "box-cox")
expect_identical(
get_transformation(m)$transformation(5),
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-gamlss.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ test_that("find_parameters", {
set.seed(123)
dat <<- data.frame(
Y = sample(20:50, 100, replace = TRUE),
date = sample(seq(as.Date('1999/01/01'), as.Date('2000/01/01'), by = "day"), 10),
date = sample(seq(as.Date("1999/01/01"), as.Date("2000/01/01"), by = "day"), 10),
cont1 = rchisq(100, df = 2),
cont2 = runif(100),
cat1 = sample(LETTERS[1:3], 100, replace = TRUE),
Expand Down

0 comments on commit 87ca2c8

Please sign in to comment.