Estimation of generalised regression models by the grouping method