Skip to content
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

Use new arg-names of data_rename() #784

Merged
merged 9 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.12.4.8
Version: 0.12.4.12
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -160,4 +160,4 @@ Config/Needs/website:
r-lib/pkgdown,
easystats/easystatstemplate
Config/rcmdcheck/ignore-inconsequential-notes: true
Remotes: easystats/insight
Remotes: easystats/datawizard, easystats/see
2 changes: 1 addition & 1 deletion R/check_collinearity.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
x <- insight::format_table(x)
x <- datawizard::data_rename(
x,
pattern = "SE_factor",
select = "SE_factor",
replacement = "Increased SE",
verbose = FALSE
)
Expand Down Expand Up @@ -409,7 +409,7 @@



.check_collinearity <- function(x, component, ci = 0.95, verbose = TRUE) {

Check warning on line 412 in R/check_collinearity.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/check_collinearity.R,line=412,col=1,[cyclocomp_linter] Reduce the cyclomatic complexity of this function from 44 to at most 40.

Check warning on line 412 in R/check_collinearity.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/check_collinearity.R,line=412,col=1,[cyclocomp_linter] Reduce the cyclomatic complexity of this function from 44 to at most 40.
v <- insight::get_varcov(x, component = component, verbose = FALSE)

# sanity check
Expand Down
9 changes: 1 addition & 8 deletions R/check_model_diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@
dat$group[dat$VIF >= 5 & dat$VIF < 10] <- "moderate"
dat$group[dat$VIF >= 10] <- "high"

dat <- datawizard::data_rename(
dat,
c("Term", "VIF", "SE_factor", "Component"),
c("x", "y", "se", "facet"),
verbose = FALSE
)

dat <- datawizard::data_select(
dat,
c("x", "y", "facet", "group"),
select = c(x = "Term", y = "VIF", facet = "Component", group = "group"),
verbose = FALSE
)

Expand Down
Loading