Dear all,
I am trying to superimpose a normal distribution over a histogram, but the final output does not look fine (I would like to see the normal distribution with mean 0 and SD 1 over the bars, to provide further evidence that the data distribution is not normal).
Here the code that I am using:
histogram GREEN_RTSI_N, percent width (0.07) addplot(function 100 *0.07* normalden(x, 0, 1), range(-1 1)) legend(order (2 "Gaussian with mean 0, SD 1") pos(1) ring(0))
I think that the issue could be the rescaling of the function, isn't it?
Many thanks in advance for any advice.
Anna
Related Posts with superimposing a normal distribution over a histogram - how to rescale the function
Stata speed when using i7 vs. i9 (vs. perhaps Xeon)Hello all, if I keep RAM constant at around 32GB, what sort of speed increase in Stata analysis (say…
Industry Dummy Variables - Grouping them togetherDear All, I have a panel data set that contains around 150 companies, covering a period of 15 years…
Business CalendarHey everybody, I'm trying since a long while to change my daily data to business calendar data. Acco…
Creating a new variable based on frequency of string values in varlistThis might be a basic question but I've been trying to create a variable to count the frequency of s…
How to generate type III table for mixed linear models in Stata?Hello, I'm new to Stata and I'm trying to obtain a type III table for a mixed model in Stata? Any su…
Subscribe to:
Post Comments (Atom)
0 Response to superimposing a normal distribution over a histogram - how to rescale the function
Post a Comment