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
Group differences of transition frequenciesHi everyone, I am trying to estimate group differences of transition frequencies. I have a unbalance…
Laptop for running stataI am in the market for a new laptop that would allow me to run large datasets in Stata. Is an 8th ge…
Creating a dummy variable for each observation separatelyHello, I have a nummeric variable which is represented in % and I need to recode this variable. To …
Create a variables based on consecutive years of observationDear Stata Users, Please, help me to resolve the following issue. Below is the sample of data that I…
Weighted t testIs it possible to ttest a variable weighted by another variable in the dataset? So, to ttest the wei…
Subscribe to:
Post Comments (Atom)
0 Response to superimposing a normal distribution over a histogram - how to rescale the function
Post a Comment