Skip to content

Commit fe9f424

Browse files
committed
Style for air
1 parent 16cbe71 commit fe9f424

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

R/check_collinearity.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,7 @@ check_collinearity.zerocount <- function(
514514

515515
# Safely subset the matrix
516516
if (length(keep_idx) < ncol(v)) {
517-
if (
518-
!is.null(term_assign) &&
519-
length(term_assign) == ncol(v)
520-
) {
517+
if (!is.null(term_assign) && length(term_assign) == ncol(v)) {
521518
term_assign <- term_assign[keep_idx]
522519
}
523520
v <- v[keep_idx, keep_idx, drop = FALSE]

tests/testthat/test-check_collinearity.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ test_that("check_collinearity, ordinal clm models", {
344344
)
345345
dat <- data.frame(y_ordinal, x_continuous, x_binary)
346346
mod_clm <- ordinal::clm(
347-
y_ordinal ~ x_continuous + x_binary,
347+
y_ordinal ~ x_continuous + x_binary,
348348
data = dat
349349
)
350350
out <- check_collinearity(mod_clm)
351351
expect_s3_class(out, "check_collinearity")
352352
expect_identical(out$Term, c("x_continuous", "x_binary"))
353353
expect_equal(out$VIF, c(1.11, 1.11), tolerance = 0.05)
354-
})
354+
})

0 commit comments

Comments
 (0)