I'm having trouble showing Roy's identity for the following Stone-Geary utility function:
$$U(x)=\prod_{i=1}^n\left(x_i-\gamma_i\right)^{\beta_i}$$
where $\sum \beta_i=1$ and $\gamma_i$ is the minimal consumption of $x_i$.
I showed that the Marshallian demand (which I confirmed using multiple sources) is
$$x_i=\gamma_i+\frac{\beta_i\left(I-\sum_{j=1}^np_j\gamma_j\right)}{p_i}$$
Therefore, the indirect utility function is
$$V(x)=\prod_{i=1}^n\left(\frac{\beta_i \left(I-\sum_{j=1}^np_j\gamma_j \right)}{p_i} \right)^{\beta_i}$$
I applied a monotone transformation to simplify the indirect utility function:
$$W(x)=\sum_{i=1}^n\beta_i\left(\left(\ln(\beta_i)+\ln \left(I-\sum_{j=1}^np_j\gamma_j \right)\right)-\ln(p_i)\right)$$
Therefore,
$$\frac{\delta W}{\delta p_i}=\frac{-\beta_i\gamma_i}{I-\sum_{j=1}^np_j\gamma_j}-\frac{\beta_i}{p_i}$$
$$\frac{\delta W}{\delta I}=\frac{\beta_i}{I-\sum_{j=1}^np_j\gamma_j}$$
$$-\frac{\delta W / \delta p_i}{\delta W / \delta I}=\gamma_i+\frac{I-\sum_{j=1}^np_j\gamma_j}{p_i}$$
Basically, as you can see, something doesn't add up: the $\beta_i$ is missing from the numerator. Thus, Roy's inequality is not verified. Where did I mess up?
(Note: I've also tried without the transformation. This is a much more tedious process but it yielded the same answer; the $\beta_i$ was still missing)