{smcl}
{* 23sep2002}{...}
{hline}
help for {hi:denscomp}
{hline}

{title:Comparing Density Estimates in One Graph}

{p 8 18 2}{cmd:denscomp} [{it:varlist}]
[{cmd:if} {it:exp}] [{cmd:in} {it:range}]
{cmd:,} {cmd:by(}{it:varname}{cmd:)} {cmd:at(}{it:varname}{cmd:)} [{it:twoway_options} ]

{title:Description}

{p 4 4 2}
{cmd:denscomp} uses {help kdensity} to estimite densities of varname 
for categories of by(). 

{title:Options}

{p 4 8 2} {cmd:by()} is mandatory. It is used to seperate density
estimation for each category of the variable in the parentheses. 

{p 4 8 2} {cmd:at()} is mandatory and has the same meaning as the same option
of {help kdensity}. 

{title:Examples}

{cmd:. denscomp linc, by(edu) at(xhelp)}

{title:Also see}

    Manual:  {hi:[R] kdensity}

{p 4 13 2}
Online:  help for {help kdensity}
