Hi Stata Users,
I would like to first apologize in case this is not the appropriate place to ask this question. The motivation is there are great minds and diverse minds with strong theoretical and practical background that can prove to be helpful in giving guidance to my challenge.
I am having a distribution of the asset index and would like to map it to a simulated distribution. The figures below show the two distributions.

Below is a reproducible code
Attached is the dataset
I am wondering what could be the best way to do this.
Thanks in advance!
I would like to first apologize in case this is not the appropriate place to ask this question. The motivation is there are great minds and diverse minds with strong theoretical and practical background that can prove to be helpful in giving guidance to my challenge.
I am having a distribution of the asset index and would like to map it to a simulated distribution. The figures below show the two distributions.
Below is a reproducible code
Code:
*** Load data use asset_index.dta, clear kdensity asset_index, title("Actual Distribution") name("graph_1", replace) *** Simulate log-normal distribution local meani = 71.53 local gini = 0.4325251 set seed 158961 clear set obs 10000 gen sigma = sqrt(2)*(1/normal(1))*((`gini' + 1)/2) gen mu = log(`meani') - (sigma^2)/2 gen lognormal_inc = exp(rnormal(mu, sigma)) kdensity lognormal_inc, title("Simulated Distribution") name("graph_2", replace) graph combine graph_1 graph_2 graph export "${gsdOutput}/graphs/graphs.jpg", replace
I am wondering what could be the best way to do this.
Thanks in advance!
Comment