Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: histogram with overlaid normal error


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: histogram with overlaid normal error
Date   Fri, 1 Feb 2008 17:33:45 -0000

In Stata 10, I tried this 

sysuse auto, clear 
histogram mpg, by(foreign) normal 

without problem. 

Nick 
n.j.cox@durham.ac.uk 

Thomas Triebs

the following works fine:
histogram /varname/, kdensity by(yr)

however when I do the same with a normal distribution:
histogram /varname/, normal by(yr)

I get the following error:
error in expression: normden(x,,)*1


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index