|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: histogram with overlaid normal error
thanks!
it seems it was some missing values that caused a problem for normal but
not for kdensity.
Nick Cox wrote:
In Stata 10, I tried this
sysuse auto, clear
histogram mpg, by(foreign) normal
without problem.
Nick
[email protected]
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/
--
________________________________
Thomas Triebs
email: [email protected]
PhD Candidate
Judge Business School
University of Cambridge
Member of the Electricity Policy
Reseach Group
www.electricitypolicy.org.uk
*
* 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/