added chisqTest and GLM