Skip to content

Commit

Permalink
fix check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 9, 2022
1 parent b5afc8d commit a03405a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ Suggests:
survival,
testthat,
TMB,
tripack,
truncreg,
VGAM,
WRS2
Expand Down
1 change: 0 additions & 1 deletion WIP/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ Suggests:
survival,
testthat,
TMB,
tripack,
truncreg,
VGAM,
WRS2
Expand Down
26 changes: 13 additions & 13 deletions tests/testthat/test-quantreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
if (.runThisTest &&
requiet("testthat") &&
requiet("parameters") &&
requiet("tripack") &&
requiet("insight") &&
requiet("quantreg")) {

# rqss ---------

data("CobarOre")
set.seed(123)
CobarOre$w <- rnorm(nrow(CobarOre))
m1 <- rqss(z ~ w + qss(cbind(x, y), lambda = .08), data = CobarOre)

mp <- suppressWarnings(model_parameters(m1))
test_that("mp_rqss", {
expect_identical(mp$Parameter, c("(Intercept)", "w", "cbind(x, y)"))
expect_equal(mp$Coefficient, c(17.63057, 1.12506, NA), tolerance = 1e-3)
expect_equal(mp$df_error, c(15, 15, NA), tolerance = 1e-3)
expect_equal(mp[["df"]], c(NA, NA, 70), tolerance = 1e-3)
})
# data("CobarOre")
# set.seed(123)
# CobarOre$w <- rnorm(nrow(CobarOre))
# m1 <- rqss(z ~ w + qss(cbind(x, y), lambda = .08), data = CobarOre)

# mp <- suppressWarnings(model_parameters(m1))
# test_that("mp_rqss", {
# expect_identical(mp$Parameter, c("(Intercept)", "w", "cbind(x, y)"))
# expect_equal(mp$Coefficient, c(17.63057, 1.12506, NA), tolerance = 1e-3)
# expect_equal(mp$df_error, c(15, 15, NA), tolerance = 1e-3)
# expect_equal(mp[["df"]], c(NA, NA, 70), tolerance = 1e-3)
# })


# rq ---------
Expand Down

0 comments on commit a03405a

Please sign in to comment.