Dear Statalist,
I am studying ethnic disparities in conspicuous consumption on a household level. Following in the steps of previous papers, I plot a Kernel density by ethnicities with total household expenditures on conspicuous goods on x-axis. My professor suggested measuring the area under Kernel density curve by ethnicity to get propensities to consume conspicuous goods and use this as evidence supporting my empirical findings.
So far, I attempted to get Kernel density estimates using this command:
kdensity consp if ethnicity=="A", gen(density),
and get an invalid syntax message.
What code can help me quantify the area under Kernel density estimation curve and what will be the measure of this value?
I am studying ethnic disparities in conspicuous consumption on a household level. Following in the steps of previous papers, I plot a Kernel density by ethnicities with total household expenditures on conspicuous goods on x-axis. My professor suggested measuring the area under Kernel density curve by ethnicity to get propensities to consume conspicuous goods and use this as evidence supporting my empirical findings.
So far, I attempted to get Kernel density estimates using this command:
kdensity consp if ethnicity=="A", gen(density),
and get an invalid syntax message.
What code can help me quantify the area under Kernel density estimation curve and what will be the measure of this value?
Comment