State dependent effective interaction for the hyperspherical formalism