Skip to content

Commit

Permalink
Change in numerical dependence test of significance (P-values) of pre…
Browse files Browse the repository at this point in the history
…dictors against target
  • Loading branch information
Damià Valero Bover authored and Damià Valero Bover committed Apr 27, 2022
1 parent 1cb22df commit 03e9b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/NoShows_variableSelectionFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@

# Numeric variable
dependenceTestNumeric <- function(dat, numeric_vars){
dat$Target <- dat$Target == "Yes"
t = data.frame(Variable = character(),P = character())
for(numVar in numeric_vars){
aovResult = unlist(summary(aov(data = dat, formula = as.formula(paste("Target~", numVar)))))
Expand Down

0 comments on commit 03e9b3d

Please sign in to comment.