Test for logregr new API

Finished the R script that can generate logistic regression results with
grouping.

This R function has a very nice support for grouping which is lacking in
the previous R script for the new linear regression.