waldchisq_test function

Wald-type chi-squared test statistic (model-based or robust)