validate matrix of covariates. It must be compatible with a vector of pvalues
check_X(X, p)
X
vector or matrix of covariates
p
vector of p-values
matrix