I am trying to assess the demand for selected food items using the LA/AIDS model. There are more than 1.0 food items consumed by the household. I would like to find out how the Stone Price index can be calculated using the stata software.
where, S refers Stone price index, pFood1-pFood4 are the prices for the 4 commodities, nameData is the name of your data file and wFood1-wFood4 are budget shares of 4 commodities.