Great, thanks! What I can do now is to compute e.g. the entrepreneurs’ share of total wealth as
AllStats.A_entre.Mean/(AllStats.A_entre.Mean+AllStats.A_work.Mean);
The reason is that the command AllStats.A_entre.Mean computes the integral of assets with respect to the population distribution, let’s call it D, and assets are recoded as 0 if the individual is not an entrepreneur. So I get the total assets owned by entrepreneurs.
But if I wanted the average amount of assets conditional on being an entrepreneur I would need to restrict the distribution only to entrepreneurs. Let’s call this new distribution as D_E. Then the average assets of entrepreneurs are equal to the integral of assets with respect to this new distribution, D_E.
(I’m sure you already know this of course, I just write here for other users and to my future self o/w I forget