Magnetic properties of the rare earth pnictides