Hi everybody.
How can i generate random numbers in Stata in order to replicate a smooth density? What i have is several lognormal distributions estimated only from knowledge of distributional parameters and i need to generate a histogram that reproduces that particular distribution. Note that my distributions are estimated from grouped data (i do not know any value of the variable itself, only aggregate data like Gini and Mean Income from which i recovered the parameters). Since my distributions are lognormals, i should generate random normal values in Stata and then exponentiate them. Is it correct? Any additional comment or suggestion? Thanks to all.
How can i generate random numbers in Stata in order to replicate a smooth density? What i have is several lognormal distributions estimated only from knowledge of distributional parameters and i need to generate a histogram that reproduces that particular distribution. Note that my distributions are estimated from grouped data (i do not know any value of the variable itself, only aggregate data like Gini and Mean Income from which i recovered the parameters). Since my distributions are lognormals, i should generate random normal values in Stata and then exponentiate them. Is it correct? Any additional comment or suggestion? Thanks to all.
Comment