We know that nuclear magnetic moment can be expressed in terms of the expected value for nuclear spin as:
$$\langle\mu\rangle =[g_lj+(g_s-g_l)\langle s_z\rangle]\frac{\mu_N}{\hbar}$$
(Cf. Krane), where $\vec{j}$ is the total angular momentum, $\vec{l}+\vec{s}$.
How does the expected $\langle s_z\rangle$ value relate to the $\vec{j}$-component of spin, $\langle s_j\rangle$? Krane mentions that only that value is needed, given that it remains constant.