#x is a 10 x 3 matrix x = matrix(rnorm(3*10), ncol=3) y = rnorm(10) res = glm(y~x) #ignore the intercept pval summary(res)$coeff[-1,4] < 0.05