FORTRAN IV program for relational regression using the gradient method