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
L'option Orthogonal dans le GMM en système two-stepJ'évalue l'effet de la qualité des institutions (DIM_POL) sur le développement financier (DFI). Pour…
Multistate model analysisDear All, I want to calculate the extra LOS attributable to a HAI. Using the command "predictms" I h…
Tracking changes in population by geography over timeHello, In my dataset I have a number of small geographical areas (beginning with A in the sample da…
Bayesian analysis question with StataHello, I am new to Stata and I am trying to run a Bayesian analysis. I have a model using Jags in R…
Generate primary, secondary, tertiary employer each month in panel dataHi everybody I am working with panel data to test how employees are affected when they are insource…
Subscribe to:
Post Comments (Atom)
0 Response to superimposing a normal distribution over a histogram - how to rescale the function
Post a Comment