找高手给你往上加均值,方差吧
- data trans;
- input temp;
- cards;
- 543
- 543
- 543
- ...
- ;
- run;
- title 'Fit a normal curve on histogram';
- ods select ParameterEstimates GoodnessOfFit FitQuantiles Bins MyPlot;
- ods output bins=bins;
- proc univariate data=Trans;
- histogram Temp / normal(percents=20 40 60 80 midpercents)
- name='MyPlot'
- endpoints = 363 to 619 by 1;
- inset n mean std / pos = ne format = 6.3;
- run;
- SYMBOL1 V=STAR C=RED;
- symbol2 color=blue interpol=spline value=dot height = .1;
- proc gplot data=bins;
- plot obsPercent*MinPoint estPercent*MinPoint /overlay haxis=350 to 650 by 50;
- run;
- quit;