We study the acceptation of students to the university according to different criteria. The parameters x are quantitative values. The parametre y is binary value, it is the result, if the student is admitted y equal to 1, if not y equal to 0. I'm trying to figure out which parameter x1, x2, x3 or x4 has the biggest influence on y in order to have 1. It can be useful to know the weight of each parametre on y.
For that, I'm using rcorr like this example. I'm not sure that I can use rcorr because of my y parametre. If not, which function should I use?
library(Hmisc)
x1 <- runif(50, min=0, max=100)
x2 <- runif(50, min=0, max=100)
x3 <- runif(50, min=0, max=100)
x4 <- runif(50, min=0, max=100)
y <- sample(0:1, 50, replace = TRUE)
d <- data.frame(x1,x2,x3,x4,y)
m <- as.matrix(d)
rcorr(m, type=c("pearson","spearman"))